From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id DBD5AC4C4; Wed, 26 Nov 2025 21:34:47 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id B3373C413; Wed, 26 Nov 2025 21:34:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-b4-smtp.messagingengine.com (fout-b4-smtp.messagingengine.com [202.12.124.147]) by atuin.qyliss.net (Postfix) with ESMTPS id 08AA2C375 for ; Wed, 26 Nov 2025 21:34:38 +0000 (UTC) Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 0769D1D0011C for ; Wed, 26 Nov 2025 16:34:36 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Wed, 26 Nov 2025 16:34:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1764192875; x= 1764279275; bh=loLL/uiGIl7hnjxtA/CEzKsuYzCyjNgBFC5pYlsrp/w=; b=H cU4zAGrWQaZYba6N9rYlF77xUNZ4qVrKY3RIksvwMm2RRRAxzQY37Fn0eiIBJoJQ 040QLnFyO+TojaFRiV6OmB0EzoHAmK+wL+H6bLqCSK+EyRT7YeEwZvf1uV9XDxIm bB8o2z1ANP636emXK7Dn+mpT8WEF55gszlU2OmGQQ4Rx299vIPPYayUCusuRIfKl RpuZQsih9EUnBDQLaBNX3Gm/dJOgDXHkmQSwvKdjb858Ko3o4mIfgSYa9aJA4Gmo yI6VoMDqIOuAVq1+AMg0rpLsi3FVhPkyUfLwiA0zWuStpj/KGVCt0nkLr94oZG7Z hLjxnNvmFBRtFzMnuQBzA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1764192875; x=1764279275; bh=loLL/uiGIl7hnjxtA/CEzKsuYzCy jNgBFC5pYlsrp/w=; b=YV/8yqnI7hxXlF04DIkgueNTIOtVhE3cb1jF1pZWCLQG V4deEqni5NbDAryiTv1LrpI5Sz0mp3LBdXrqjiT9mTsHwXoKk/XcOwYrnaHhQLQY NXJbGpXQDSJySRwbcl5Of8rI7BLIoJIC5KeNXrcHFBO+mOVJp0GIN0JMgy8HpOkT I+eWYu/pDVyJeD607If07ki6vA1gfx5LuISs9Z00wD+yyTjzz9G99dW6CfO8I04Q 1wVELefmEcpYlK5HY9smuuscTPudA6X5WLkifbu/6qmtPStMUTlwzlBjTCuHwhPl 9zhw/bPSJjVxXTN9q/rCHhYslxF+P45lAA2Nkj//jQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeehgeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekredtre dttdenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhisheq necuggftrfgrthhtvghrnhepgfefudekvdelieelledufeevheeglefggedvudejvddtff euueevffehleejkedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhephhhisegrlhihshhsrgdrihhspdhnsggprhgtphhtthhopedupdhmohguvg epshhmthhpohhuthdprhgtphhtthhopeguvghvvghlsehsphgvtghtrhhumhdqohhsrdho rhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 26 Nov 2025 16:34:35 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id 0DB702981B54; Wed, 26 Nov 2025 22:34:19 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH 11/13] img/app: dbus: create socket outside daemon Date: Wed, 26 Nov 2025 22:34:04 +0100 Message-ID: <20251126213407.1773744-11-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251126213407.1773744-1-hi@alyssa.is> References: <20251126213407.1773744-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: B637PJTJCYHY7PH7ZHVN6MRKSL5A5MK6 X-Message-ID-Hash: B637PJTJCYHY7PH7ZHVN6MRKSL5A5MK6 X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This will enable dropping privileges for the daemon. Signed-off-by: Alyssa Ross --- img/app/image/etc/s6-rc/dbus/notification-fd | 2 +- .../image/etc/s6-rc/dbus/notification-fd.license | 2 +- img/app/image/etc/s6-rc/dbus/run | 13 +++++++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/img/app/image/etc/s6-rc/dbus/notification-fd b/img/app/image/etc/s6-rc/dbus/notification-fd index 00750ed..b8626c4 100644 --- a/img/app/image/etc/s6-rc/dbus/notification-fd +++ b/img/app/image/etc/s6-rc/dbus/notification-fd @@ -1 +1 @@ -3 +4 diff --git a/img/app/image/etc/s6-rc/dbus/notification-fd.license b/img/app/image/etc/s6-rc/dbus/notification-fd.license index a941ca4..0d3d47c 100644 --- a/img/app/image/etc/s6-rc/dbus/notification-fd.license +++ b/img/app/image/etc/s6-rc/dbus/notification-fd.license @@ -1,2 +1,2 @@ SPDX-License-Identifier: CC0-1.0 -SPDX-FileCopyrightText: 2023 Alyssa Ross +SPDX-FileCopyrightText: 2025 Alyssa Ross diff --git a/img/app/image/etc/s6-rc/dbus/run b/img/app/image/etc/s6-rc/dbus/run index 75e9cab..a609e86 100644 --- a/img/app/image/etc/s6-rc/dbus/run +++ b/img/app/image/etc/s6-rc/dbus/run @@ -1,8 +1,17 @@ #!/bin/execlineb -P # SPDX-License-Identifier: EUPL-1.2+ -# SPDX-FileCopyrightText: 2023 Alyssa Ross +# SPDX-FileCopyrightText: 2023, 2025 Alyssa Ross + +s6-ipcserver-socketbinder -Ba 0770 /run/session-bus + +export LISTEN_FDS 1 +getpid LISTEN_PID + +fdmove -c 3 0 +redirfd -r 0 /dev/null dbus-daemon + --address systemd: --config-file /etc/dbus-1/session.conf --nofork - --print-address 3 + --print-address 4 -- 2.51.0