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 7B5EA192BC; Tue, 09 Dec 2025 19:56:43 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 09A6419316; Tue, 09 Dec 2025 19:56: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-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) by atuin.qyliss.net (Postfix) with ESMTPS id 3D9D719315 for ; Tue, 09 Dec 2025 19:56:39 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 1720CEC058B; Tue, 9 Dec 2025 14:56:37 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Tue, 09 Dec 2025 14:56:37 -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=fm3; t=1765310197; x=1765396597; bh=mivKzXcWkA sG0Y13OZHp7WoQMwBpJ1xcAWpulNmtTD4=; b=keTucp9L57Xy6g17PdODG2ti9n b/DgkH0O2DMZv2BvuVQtK/KqKBNvJg14HKfApWryKjrOFbm/jLILMVKGMF2qQ1IS MP2o8O/ALbfdOAvwaY8mu+5tg9VCUia0gJEnq5wP42ErOOkZc22VnAlvxzNTEIGT 4ymSycyUoi1oJQwRFo02wDOW8v8GDiCJ42ko3EICPcrjjUvAmmDfq62PrHTIC83y 96if1PD94fxg88CyyYOtK2DxCVkfV059szFxlBHf6wM1Y9QE4h1P/rxdun8LocPr somEY1dQXm98vvFCfOVMxvzBNpKQN1MJYBXBMa3C1CEnYZe4TuFaX/aQj52A== 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=fm1; t= 1765310197; x=1765396597; bh=mivKzXcWkAsG0Y13OZHp7WoQMwBpJ1xcAWp ulNmtTD4=; b=uFcHVpk3cnq3SjFa7+iAejGMWUmQIkRUiJzJNIakg7j8rr9CUEJ IGBv+7JZ+Ut66OjgqqcdxZPcYVnJfDqs6e62LWzN1LsmZY98dF+OFRzY1liImYjN b/SylMG/eswritg41SF9B1cjNVja50wMmAC0XBZ82V38oN1C029f5bKNDoP4eoO7 Rf46K2vggKPRZUse3s0B7kN89e/MFc3HcATqH06ZPGirXwpKzrL4mRHOghJrNG7a Rti53zyftWUrN92IogG8vWKgsZmTQ5HF1/oj6b1vH675eI1cD6rFdW5g/okeOjhs wFEzcQOlPEc3c2eEMRu9qttMAiMYJ9hPekQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvtdegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufgjfhffkfggtgesghdtreertddtjeenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepteehvedugf ejgfehhfeijeduleekleejgedvkeeuuefhhfegvdevfeetveegteeinecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Dec 2025 14:56:36 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id C3B4467410FD; Tue, 09 Dec 2025 20:56:15 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH 2/2] host/rootfs: weston: run as non-root In-Reply-To: References: <20251209182402.872822-1-hi@alyssa.is> <20251209182402.872822-2-hi@alyssa.is> <878qfbjuxq.fsf@alyssa.is> Date: Tue, 09 Dec 2025 20:56:13 +0100 Message-ID: <875xafjuoy.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: UZUCYYMAPQBRI4BHS2FXYUSQHA3DY5UD X-Message-ID-Hash: UZUCYYMAPQBRI4BHS2FXYUSQHA3DY5UD 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; charset=utf-8 Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > On 12/9/25 14:50, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> On 12/9/25 13:24, Alyssa Ross wrote: > > (snip) > >>>> diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/etc/passwd = b/host/rootfs/image/etc/s6-linux-init/run-image/etc/passwd >>>> index 29f3b252..50def56d 100644 >>>> --- a/host/rootfs/image/etc/s6-linux-init/run-image/etc/passwd >>>> +++ b/host/rootfs/image/etc/s6-linux-init/run-image/etc/passwd >>>> @@ -1 +1,2 @@ >>>> root:x:0:0:System administrator:/:/bin/sh >>>> +wayland:x:15:15:Wayland compositor:/:/bin/nologin >>>> diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/roo= t-terminal/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/root= -terminal/run >>>> index 67ccfb45..86b9a1ef 100755 >>>> --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/root-termi= nal/run >>>> +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/root-termi= nal/run >>>> @@ -4,6 +4,8 @@ >>>>=20=20 >>>> s6-ipcserver-socketbinder -a 0700 /run/root-terminal >>>>=20=20 >>>> +if { chown wayland /run/root-terminal } >>>> + >>>> fdmove 1 3 >>>> s6-ipcserverd -1P >>>>=20=20 >>>> diff --git a/host/rootfs/image/etc/s6-rc/weston/run b/host/rootfs/imag= e/etc/s6-rc/weston/run >>>> index 2674ec0b..7d10b5b4 100644 >>>> --- a/host/rootfs/image/etc/s6-rc/weston/run >>>> +++ b/host/rootfs/image/etc/s6-rc/weston/run >>>> @@ -34,10 +34,13 @@ backtick HOME { >>>> homeof $user >>>> } >>>>=20=20 >>>> +if { install -do wayland -g wayland -m 0770 /run/wayland } >>>> +if { chown wayland /dev/tty0 /dev/tty1 } >>> >>> Why chown and not setfacl? >>=20 >> Why setfacl and not chown? > > Having a real device node owned by non-root is weird, and systemd-udevd > uses ACLs. It's not that weird=E2=80=A6 /dev/tty1 is owned by the user I'm logged in a= s on my NixOS system, and I haven't done anything special to make that happen. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQGoGac7QfI+H5ZtFCZddwkt31pFQUCaTh+3gAKCRCZddwkt31p FROoAQCTNh3kVi6xo1AJqmd93KEc8+goHLLyf+g75Zs4791NDwEA9V+b0ZqC8hmy 7j3GdS08URIPo5XvEZ20cMmVpSdxGQI= =VcE/ -----END PGP SIGNATURE----- --=-=-=--