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 5F08A16323; Tue, 09 Dec 2025 10:59:32 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id DB05C1639E; Tue, 09 Dec 2025 10:59:29 +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-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.149]) by atuin.qyliss.net (Postfix) with ESMTPS id EB5FB1639D for ; Tue, 09 Dec 2025 10:59:28 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id EC098EC05FC; Tue, 9 Dec 2025 05:59:26 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Tue, 09 Dec 2025 05:59:26 -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=1765277966; x=1765364366; bh=ln4k/6nZ5e 63c3TbkxCxY5SZXRD4/JCrZ4bIX3gBcBQ=; b=bl0Vfxsz9tr62ME0tnjCD83Wcr 7LahDRKCXvlnByUZpSHmCJDt/svC3uI1yULFG6vuy1p2v1hrkuwb7Vwd5T+IzkbP kwO0mDpP78C97rF5AQoRfh3NDX09H+Thrzgzh/X1I8JRHXpuV63AXwArYOYVg5LS HDOGJDY5RKlMoUp6fQSW7gdW68DQTBfzB6NuS9CQuvooHBSj9ptXrO5jdjJktTqT O280YPTIjITw2nvwDrAxTAdEIJrPknuYL6sE77YQfyEj5zHeejFzAL1aDgSURv9W 2KeW+cogSPMkI+wCpp1S23w1MNy116GB4yxCRDoZxb/HaKFT+oYrSV5AlY2w== 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= 1765277966; x=1765364366; bh=ln4k/6nZ5e63c3TbkxCxY5SZXRD4/JCrZ4b IX3gBcBQ=; b=SnKfPRNip7pEQPhIYFt/u6cGbj3sZbTphteqECmiWgbrOPuJEF1 MLJzIAqGbUTzqrXmlQ/tDCId0FJww4ObkPnXDRrCKT2RljvK+vQBDgFP5XEWN/PJ tWS57IlPVyru5IVbU4t0SlN6n7BYz7farWkZuPvr3tw8Tee7hDpyKzsXU/M0uVQ0 xQ4J4PAqChRD/xNyDwKijkI6PUBfjj/XjkW5mFE7/+8Fu/o3VSyk+/dsgr2SezO0 S4vMQpZByuyJ8ANRQebFCPoto2OGqevUyJ/sSynd/q1UphEyTtLNqIn1IGxRRRoY rTYbi0HbGBc9x9rpvk+icVFHCpXQMGr2Biw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduleefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfhfgggtuggjsehgtdfsredttddvnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpedtjeeute ekheefueeluefgveeiffekhfetfeeivdefheeuhfejgedvieffiefhieenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrd hishdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep uggvmhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlse hsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Dec 2025 05:59:26 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id 621065FCEA0A; Tue, 09 Dec 2025 11:59:10 +0100 (CET) Date: Tue, 9 Dec 2025 11:59:10 +0100 From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH 5/5] host/rootfs: add wayland group Message-ID: References: <20251209085628.603316-1-hi@alyssa.is> <20251209085628.603316-5-hi@alyssa.is> <2c297bde-f30f-42aa-9f3e-e8948bb5b1ec@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="suvyrzsweafmrhbz" Content-Disposition: inline In-Reply-To: <2c297bde-f30f-42aa-9f3e-e8948bb5b1ec@gmail.com> Message-ID-Hash: GSY2JU7UESYCXE7FXNHHWX6WW2WDHJD4 X-Message-ID-Hash: GSY2JU7UESYCXE7FXNHHWX6WW2WDHJD4 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: --suvyrzsweafmrhbz Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Subject: Re: [PATCH 5/5] host/rootfs: add wayland group MIME-Version: 1.0 On Tue, Dec 09, 2025 at 05:55:22AM -0500, Demi Marie Obenour wrote: > On 12/9/25 03:56, Alyssa Ross wrote: > > This will allow clients running as unprivileged users to connect to > > the compositor. > > > > Signed-off-by: Alyssa Ross > > --- > > host/rootfs/image/etc/s6-linux-init/run-image/etc/group | 1 + > > host/rootfs/image/etc/s6-rc/weston/run | 5 +++++ > > 2 files changed, 6 insertions(+) > > > > diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/etc/group b/host/rootfs/image/etc/s6-linux-init/run-image/etc/group > > index e3ade46..fe72eb7 100644 > > --- a/host/rootfs/image/etc/s6-linux-init/run-image/etc/group > > +++ b/host/rootfs/image/etc/s6-linux-init/run-image/etc/group > > @@ -13,3 +13,4 @@ disk:x:11: > > cdrom:x:12: > > tape:x:13: > > kvm:x:14: > > +wayland:x:15: > > diff --git a/host/rootfs/image/etc/s6-rc/weston/run b/host/rootfs/image/etc/s6-rc/weston/run > > index aa1e7b6..7cb182f 100644 > > --- a/host/rootfs/image/etc/s6-rc/weston/run > > +++ b/host/rootfs/image/etc/s6-rc/weston/run > > @@ -20,4 +20,9 @@ importas -i home HOME > > cd $home > > if { udevadm wait /dev/dri/card0 } > > unshare --cgroup --ipc --net --uts > > + > > +s6-envuidgid root > > +s6-envuidgid -g wayland > > +s6-applyuidgid -Uz > > +umask 002 > > weston -S $WAYLAND_DISPLAY > > Can the socket be chmod'd after Weston starts? Running with 002 > umask is not great. If we use sd-notify-adapter, then I think so, but it wouldn't be very nice. What's the problem with umask 002? --suvyrzsweafmrhbz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQGoGac7QfI+H5ZtFCZddwkt31pFQUCaTgA/QAKCRCZddwkt31p FVWTAP9/5rTHfr852kM/toibkvNtAU/mrubnc9a8dYmj+DTSygD/SjDJ9TmKYDro FBcB7zC2hYlSqhDPh7JrKoOQAEGNrAM= =th7T -----END PGP SIGNATURE----- --suvyrzsweafmrhbz--