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 DBBCC7D47; Wed, 29 Oct 2025 09:54:25 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 8D28B7DEF; Wed, 29 Oct 2025 09:54:23 +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,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-b1-smtp.messagingengine.com (fout-b1-smtp.messagingengine.com [202.12.124.144]) by atuin.qyliss.net (Postfix) with ESMTPS id B0EED7DED for ; Wed, 29 Oct 2025 09:54:21 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id A57E51D00185; Wed, 29 Oct 2025 05:54:19 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 29 Oct 2025 05:54:19 -0400 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=1761731659; x=1761818059; bh=/QjvBTXvNu JDPhy2SrWpzykcMiC3usrpUv8cywFzlEE=; b=UCOM1opVZEibUSmwDpdr77B4U0 qr5OWnhRw/TLJmrvJNEZIrDKYNXvemOSEL6qyu8uQHEo+JXGOQEtQP+ACbiPasB+ C4y5r/HYPn8mqaIq6IEIlV7QaSwuylIYnHubO2w0tVxfrFwY2iHIp8e4lQIiBCP+ +ip6+HafWEohFRr+exBmoivmHCDGCgPr64hmwRAT3VjZCCLos9uCyTDXHLNo45bB ujf99p2YbnRuirxN+MGBuDayaDbTm4W2VxcslO60q79tYPZuFcegrkPlCtVh2+Yu NPjchBKL9U8v1ymmR2iTuQroJTj4WQIIE/lRe2h7cNwUqcClfDQGJf1FrsnA== 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= 1761731659; x=1761818059; bh=/QjvBTXvNuJDPhy2SrWpzykcMiC3usrpUv8 cywFzlEE=; b=Iw7DaqqSXgu65F/j/GF7lI+C3rCN4TgzUlAWIPp9ZiaQ/R55eIV stM8tTiKCH0MDdEPTccKdyYjyaB/XA4Cuql9R1yCpf3mw3cl87Ylgn5LiOBtZX6j 4xmF8JU17FfZsqX81hEl6LIhPyEms0TDW/cjnwZMxbhAHpIYL1476bmdC9IvN0Cl 5XiAY8TYu+6tbVMRvYSorvFTpM8HzXY/yyJ6ZPwxjybUk9rG2eLWWK3esuo2seeF Tz7hjGmIen7LNpC4eejRsRatnZvKE0gXSTOR+8HBL21lvDhEStY/5OypL/R7h8UN 43aFBynv6hU2Eoba7Kw0oEgN8S10pyx3Xvg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduieefgedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeelveduie ekteeiveehteeludeitdeuieevgfetveegvdekueekieefffefveevleenucffohhmrghi nheprghlrhgvrgguhidrrhhunhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehhihesrghlhihsshgrrdhishdpnhgspghrtghpthhtohepvddp mhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepuggvmhhiohgsvghnohhurhesghhmrg hilhdrtghomhdprhgtphhtthhopeguvghvvghlsehsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 Oct 2025 05:54:18 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id BD77D61E976D; Wed, 29 Oct 2025 10:31:52 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH v4 2/2] host/rootfs: Switch to systemd-udevd In-Reply-To: References: <20251003-udev-v4-0-7d7344b14d11@gmail.com> <20251003-udev-v4-2-7d7344b14d11@gmail.com> <87jz0f3th6.fsf@alyssa.is> Date: Wed, 29 Oct 2025 10:31:51 +0100 Message-ID: <87sef2f3zs.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: AJDNXLYID4JNQ3SWKECIA6NGMKS5UQTE X-Message-ID-Hash: AJDNXLYID4JNQ3SWKECIA6NGMKS5UQTE 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: Spectrum OS Development 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 10/28/25 12:02, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> diff --git a/host/rootfs/image/etc/s6-rc/weston/run b/host/rootfs/image= /etc/s6-rc/weston/run >>> index 7dca0dab095569c9e7d49df9d245533a7265283e..8276e7eed45ab8155e21a3e= 11f86c57c03d66cc4 100644 >>> --- a/host/rootfs/image/etc/s6-rc/weston/run >>> +++ b/host/rootfs/image/etc/s6-rc/weston/run >>> @@ -4,9 +4,9 @@ >>>=20=20 >>> unexport WAYLAND_DISPLAY >>>=20=20 >>> -foreground { >>> - umask 077 >>> - mkdir /run/user/0 >>> +if { >>> + umask 0022 >>> + mkdir -p -m 0700 /run/user/0 >>=20 >> What's the point in continuing to umask when you explicitly provide the = mode? > > The mode only applies to the last directory (/run/user/0). The umask > ensures that /run/user will be created with the correct permissions > (0022) if it doesn't exist already. /run/user always exists, though. It's in the run-image copied by s6-linux-init in early boot. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaQHfBwAKCRBbRZGEIw/w olc4AP9yWwzPryxXj8o9K3kDZ+ONBO3F7OZe9Qi/FW1RlHih4wD/cVqVv/f26ntc vrJCEpojk7t+tS20BsbWVRwdT+DWYws= =6rDk -----END PGP SIGNATURE----- --=-=-=--