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 1FB8B25195; Fri, 14 Nov 2025 11:45:14 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id AE566250FC; Fri, 14 Nov 2025 11:45:09 +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-b5-smtp.messagingengine.com (fout-b5-smtp.messagingengine.com [202.12.124.148]) by atuin.qyliss.net (Postfix) with ESMTPS id A60FB25129 for ; Fri, 14 Nov 2025 11:45:06 +0000 (UTC) Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id 8CB6A1D001B8; Fri, 14 Nov 2025 06:45:04 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Fri, 14 Nov 2025 06:45:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type: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=1763120704; x=1763207104; bh=gB1l3V4315 rifA0aZP46EiY5UHwaSFSG4NKvfKCZfhc=; b=Y4GNbyV4oQBrCt96yy9UPLEUAn sz0vGW8M01OJ8wWTX9pXzjyNhV0KrQF5+LQFtcKhMC+GVNDuMLeAEjgGwt/RpKVK k2CTbJZyJIepjiL3Y5IxCKoKK9ojIFVrmCcgGW1n7wvhHHxGCyzIk4OMhgQCgRRX G0QweKPg07aM3ENeHE40YYR9ik4j/mdzSLfYBkbPbsPdL6zGnTzz688yFHl/NBI5 jYW1x9OCJqcYNpgESFZURQ/8fhfeZxT27cJN8D/8nRQNB7J9AU0H2h2FgFaNj0/o Z5UP5kJ3pMinlCcD/pcjCJGjTdCElbjf3bEtIF3C6kigH5sv9wgSeX751DrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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= 1763120704; x=1763207104; bh=gB1l3V4315rifA0aZP46EiY5UHwaSFSG4NK vfKCZfhc=; b=dCoRFAspfiC1bT+OIOTUBwbrp5OW59q1Jo3/LiJziHJrklCPEPE BkxzJ9RzE3r1qBVI3v6uyJfgu/QIUvH8fdM0XCgA+gxhNk8WpYeMwTSfAyDwQPKK 62WcNr21s6CPFQvH/KMNzJen3KcnHE4Up0WYt5kmxxl4DcXzTb3tYFEIZuql/6L9 li0UkSm6dQqR39DZDOI/OdqgY3ECdXneTiIZK2wa3SMSPAU9zxa3BZrtzR5BsWq3 vSjzRGD+sRPJSMScMIawJosPCLILHUEE58yg8igCRA5ShwRCtzvoV47gdWnaiEq0 xf2/crRHvu66f0uPWjOycgwjGpDwANyz2Zg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvtdeljeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeeiudffue eilefgtefgtddttdekkeehkefgheekudefveetgeefiefftedvteeuveenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrd hishdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep uggvmhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlse hsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 14 Nov 2025 06:45:03 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id 0A57219CE058; Fri, 14 Nov 2025 12:45:03 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH 2/3] img/app: dbus: don't listen on VSOCK In-Reply-To: <84d6b03f-8651-40d3-b41b-407623012921@gmail.com> References: <20251113111038.39098-1-hi@alyssa.is> <20251113111038.39098-2-hi@alyssa.is> <87frahbytx.fsf@alyssa.is> <84d6b03f-8651-40d3-b41b-407623012921@gmail.com> Date: Fri, 14 Nov 2025 12:45:01 +0100 Message-ID: <87ikfcltxe.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: 7HIOQW3ZNKQAZG2JCYZS5R25WNUOE2NB X-Message-ID-Hash: 7HIOQW3ZNKQAZG2JCYZS5R25WNUOE2NB 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 CC: devel@spectrum-os.org 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: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > On 11/13/25 12:56, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>>> diff --git a/img/app/image/etc/s6-rc/dbus-vsock/notification-fd.licens= e b/img/app/image/etc/s6-rc/dbus-vsock/notification-fd.license >>>> new file mode 100644 >>>> index 0000000..0d3d47c >>>> --- /dev/null >>>> +++ b/img/app/image/etc/s6-rc/dbus-vsock/notification-fd.license >>>> @@ -0,0 +1,2 @@ >>>> +SPDX-License-Identifier: CC0-1.0 >>>> +SPDX-FileCopyrightText: 2025 Alyssa Ross >>>> diff --git a/img/app/image/etc/s6-rc/dbus-vsock/run b/img/app/image/et= c/s6-rc/dbus-vsock/run >>>> new file mode 100755 >>>> index 0000000..37fae7d >>>> --- /dev/null >>>> +++ b/img/app/image/etc/s6-rc/dbus-vsock/run >>>> @@ -0,0 +1,17 @@ >>>> +#!/bin/execlineb -P >>>> +# SPDX-License-Identifier: EUPL-1.2+ >>>> +# SPDX-FileCopyrightText: 2025 Alyssa Ross >>>> + >>>> +if { modprobe vsock } >>>> + >>>> +export LISTEN_FDS 1 >>>> +getpid LISTEN_PID >>>> +export SYSTEMD_LOG_LEVEL notice >>>> + >>>> +systemd-socket-activate -l vsock::219 --now >>>> + >>>> +# Notify readiness. >>>> +if { fdmove 1 3 echo } >>>> +fdclose 3 >>>> + >>>> +socat ACCEPT-FD:4,fork UNIX-CONNECT:/run/session-bus >>> >>> I'd prefer to use NOTIFY_SOCKET here. >>=20 >> Then we have to run a whole background process to translate the >> systemd protocol to the s6 one. Doesn't seem worth it to me. > Whoops, wrong environment variable name :). I meant $LISTEN_FDS. I still don't understand what you mean. You'd like this to calculate 2 + LISTEN_FDS, and substitute that into the socat command line, even though we know the result will always be 4? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQGoGac7QfI+H5ZtFCZddwkt31pFQUCaRcWPQAKCRCZddwkt31p Fb6mAQClDXdCz3HQa7S0EHrcBcbUI7vTvZ9x0vINxAKms9eWnwD+LxFV9kZgyQk2 u2wwmcocwZkm5w2Hjjmk1RlFL9VNYAs= =BJO9 -----END PGP SIGNATURE----- --=-=-=--