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 29AF710BED; Sun, 31 Aug 2025 11:06:23 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 0399510C09; Sun, 31 Aug 2025 11:06:20 +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-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) by atuin.qyliss.net (Postfix) with ESMTPS id D1F9710C05 for ; Sun, 31 Aug 2025 11:06:18 +0000 (UTC) Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id F2D26EC0104; Sun, 31 Aug 2025 07:06:17 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Sun, 31 Aug 2025 07:06:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=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=1756638377; x=1756724777; bh=TgbnQJAyhQ /eP/Y/3ji9UkcYIlhQV39MGOe1yTtp+qg=; b=fbhSgP2Lh8Ci+lh0niLf7UiRi7 xZRuvdcnJqAusdziS2NEnOZdelYuk7t5KeABjkbRKXeCfgh27iWU6US5sq1odY41 BXTMmGH93XVHSGfQ7+lPQcPKe/1+2KPdNIumNnopXOHkWq0V6GiYYqs7ti6l27bq w23UV9KBNWk0UgGvN8793IQfTS/buzPw13PlQaqYsLua9DRe3eJT4YoQL6r+ictz kkcE9O3pvERvVZn8ZjVYFkIiRYXU6gusHzt/Tthpwe4yUQK1XZJZybZswzyCH+Aa 7c423R+QkugbFMXKGZn3iSfJ/oICTLBqw7iQWzEZPa7NEI/lWdLknL85dzlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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= 1756638377; x=1756724777; bh=TgbnQJAyhQ/eP/Y/3ji9UkcYIlhQV39MGOe 1yTtp+qg=; b=YjJNIJcfCH6gYX1orEnEZ9zWBK12EKeuWOMGCWcCIVaHoenxu7f nlIww5fRIKaputkYO5rHeUEtZIM5sl6NamtmGSjF6s1Hh+nNShz0xE9PkhHazbK7 FdNGRZ7vsWXWoM08ZLQLyIac+tVD7v39X83S6thBbuSPGy6a/3igUz6wUE9gPJhj Cqe8W2WVmeGmZQjxFi/0hmRmWpWaQ1awg7PcEJkegKAt1bUM1OCr46kQOoQBoGtB EBofh7SPDhORdIOaXznJXUm1WzLJsdhEyNTQUbzzvzinyB+2uv5VYFZnzYs3za1h wUNoZLacONH69RqnKfJ2UgO8M2LHgE4i9Pg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddukeeluddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvufgjfhffkfggtgesghdtreertddttdenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepvdeuvdeivd ehhfeikedtvddvhefgheffleevueeigffgtdffffeujedujeejkeejnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 31 Aug 2025 07:06:17 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 8E1F1150FB49; Sun, 31 Aug 2025 13:06:06 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour , Spectrum OS Development Subject: Re: [PATCH] host/rootfs: add /dev/fd and /dev/std* In-Reply-To: References: <20250807-host-dev-fd-v1-1-3d08c0f5eab3@gmail.com> <87wm7d4rnz.fsf@alyssa.is> Date: Sun, 31 Aug 2025 13:06:04 +0200 Message-ID: <87tt1nycmb.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: FKOV3ZGMFGHRXXTCY3TCGSKAYBWBZSQH X-Message-ID-Hash: FKOV3ZGMFGHRXXTCY3TCGSKAYBWBZSQH 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: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > On 8/8/25 14:03, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> This is the same as 14483e1a690c (img/app: add /dev/fd and /dev/std*), >>> but for the host. >>> >>> Signed-off-by: Demi Marie Obenour >>> --- >>> host/rootfs/etc/s6-linux-init/scripts/rc.init | 5 +++++ >>> 1 file changed, 5 insertions(+) >>=20 >> Hmm. I did it only for img/app on purpose, because that's the only >> place we run arbitrary executables. In host/rootfs (and vm/sys/net), >> we only run a limited set of code that we control. WDYT? > > We control the code to some degree, but third-party dependencies might > depend on these files existing, and failures due to these being > missing could be extremely difficult to debug. In particular, > portable code might use /dev/fd intentionally, as the BSDs have it. Makes sense. In that case we should also do it in vm/sys/net as well. Do you think we even need to do it in host/initramfs? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaLQsnAAKCRBbRZGEIw/w orXtAQCndzn6hJ/I36VSExAc3F9auOQ8vfgVtQ7ppsMx4Q1UBQEAh3tvBWVGFkv7 xqNzm9WcTmYQ3sxLQBfYwUuIBaUdUAc= =Vqkc -----END PGP SIGNATURE----- --=-=-=--