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 4E0CA2AD1; Tue, 27 Jan 2026 16:40:32 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id EF05B2AC6; Tue, 27 Jan 2026 16:40:25 +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 CED982AC5 for ; Tue, 27 Jan 2026 16:40:23 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 2D9ADEC022C; Tue, 27 Jan 2026 11:40:22 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Tue, 27 Jan 2026 11:40:22 -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=fm1; t=1769532022; x=1769618422; bh=MlKq5QRaj5 6jy3B0R2n/5T642WvoeulcZHFscBlzB+M=; b=TS/X6FXbteQdI73MN7ybIK00fe fLDp+RVLbo4vOGJZcBk+uOAB3pZqdtxmpQJdgUY+xZ/AELtiqv3LFnyj5rLP+VZp BzhL16u8wdeItJTzTwbehmjCcmFZxizfXgn0AFhImLofjScfzXjCVzoxu1+Rvdqs aUGtkUQ6QY+G3sfWqtTLzGsYfX7/amHL/JyWSfARvXSTAWlUjXDKFHvjLaLstx2b sRy3/QrkEUgslP08RWujHwH0YH/RKtHYxqSVzwb95vdpPV9odR3Tz2tFnYzwsveJ aRSL4k4PXrMGA4AaEW3UhjQC6uKvmV3vufsUG3s/u7XvfiE4grk63ZriT0/A== 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=fm2; t= 1769532022; x=1769618422; bh=MlKq5QRaj56jy3B0R2n/5T642WvoeulcZHF scBlzB+M=; b=0o2tj5Vv7spE27m40ohg2zjViS7Zy/TWQV9ZNZ3keN0ComsRSsw rwJFWHI/YWXk4u3zUinA/pySb0oru5L20zqtj+ANH8n1mbeva/+3IM4sMJx9+Zjo JnTe4q8689ZdKmX7eucHZ4Wooow62a+7R7J878WGUoYDeHDjhSOYUi65xQtbajyk 06GLrvqBBCoQwKlAbjHB3NQayDk8UvsNi3IAT/46pYrfVlE6SoRfiZeBCdg6PRIQ j/xkxrw2A3zyadhxwagorXlNFniC+BEQGgNQptUAY7f/oSwWy9jbe9SCcpdyvVIi zS9zNjX8Mbi2ZbhPjn5P7n2WlEGU/wdSVUw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduiedutddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttdejnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeetheevud fgjefghefhieejudelkeeljeegvdekueeuhffhgedvveefteevgeetieenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrd hishdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep uggvmhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlse hsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 27 Jan 2026 11:40:21 -0500 (EST) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 55ABD7321986; Tue, 27 Jan 2026 17:40:18 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH 1/2] host/rootfs: remove /proc/kcore bind mounts In-Reply-To: <87ike6y4mu.fsf@alyssa.is> References: <20251215122707.116898-1-hi@alyssa.is> <3ef8f200-e265-4466-bff3-63fdee58a984@gmail.com> <87o6nyycn4.fsf@alyssa.is> <87ike6y4mu.fsf@alyssa.is> Date: Tue, 27 Jan 2026 17:40:16 +0100 Message-ID: <87a4xzxb4f.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: ODSQYMZ6WGDYQER4RZSEL7WIFAJ5TVHB X-Message-ID-Hash: ODSQYMZ6WGDYQER4RZSEL7WIFAJ5TVHB 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 Alyssa Ross writes: > Alyssa Ross writes: > >> Demi Marie Obenour writes: >> >>> On 12/15/25 07:27, Alyssa Ross wrote: >>>> Neither of these services run as root any more, so they don't have >>>> access to /proc/kcore any more regardless. (Also we don't have >>>> /proc/kcore on aarch64 so this previously errored there.) >>>>=20 >>>> Fixes: 62590b8 ("host/rootfs: Sandbox crosvm") >>>> Fixes: ec47d36 ("host/rootfs: Sandbox Cloud Hypervisor") >>>> Signed-off-by: Alyssa Ross >>>> --- >>>> .../service/vm-services/template/data/service/vhost-user-gpu/run | 1 - >>>> host/rootfs/image/usr/bin/run-vmm | 1 - >>>> 2 files changed, 2 deletions(-) >>>>=20 >>>> diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-= services/template/data/service/vhost-user-gpu/run b/host/rootfs/image/etc/s= 6-linux-init/run-image/service/vm-services/template/data/service/vhost-user= -gpu/run >>>> index b1f9bac..e063a82 100755 >>>> --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-service= s/template/data/service/vhost-user-gpu/run >>>> +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-service= s/template/data/service/vhost-user-gpu/run >>>> @@ -40,7 +40,6 @@ bwrap >>>> --tmpfs /proc/irq >>>> --remount-ro /proc/irq >>>> --ro-bind /dev/null /proc/timer_list >>>> - --ro-bind /dev/null /proc/kcore >>>> --ro-bind /dev/null /proc/kallsyms >>>> --ro-bind /dev/null /proc/sysrq-trigger >>>> -- >>>> diff --git a/host/rootfs/image/usr/bin/run-vmm b/host/rootfs/image/usr= /bin/run-vmm >>>> index 0640239..e30b14c 100755 >>>> --- a/host/rootfs/image/usr/bin/run-vmm >>>> +++ b/host/rootfs/image/usr/bin/run-vmm >>>> @@ -113,7 +113,6 @@ bwrap >>>> --tmpfs /proc/irq >>>> --remount-ro /proc/irq >>>> --ro-bind /dev/null /proc/timer_list >>>> - --ro-bind /dev/null /proc/kcore >>>> --ro-bind /dev/null /proc/kallsyms >>>> --ro-bind /dev/null /proc/sysrq-trigger >>>> -- >>>>=20 >>>> base-commit: 6ceeb9b236cc50d2bba90068533ca1b7ff229c8b >>> >>> /proc/sysrq-trigger and /proc/timer_list can also be dropped, >>> as they are not accessible to unprivileged users. >> >> And what about the others? I see systemd just makes them all read-only >> =E2=80=94 is that only to protect against root? Do we still need to hide >> /proc/sys, /proc/scsi, /proc/acpi, /proc/fs, and /proc/irq? The only >> entry I see that's writable by non-root in any of those on my NixOS >> system is /proc/sys/kernel/ns_last_pid, which doesn't look very harmful= =E2=80=A6 > > I'm just going to drop the /proc/scsi bind mount as well for now to fix > aarch64, but if you still think it's necessary we can instead do the > kernel config change. (and same with /proc/acpi, now done) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaXjqcAAKCRBbRZGEIw/w olfSAP9qViTu1XKufiW/DeBmnmS2dZdLKy+AoYC33aM0Iwv/FgD/aArOscMCcnSJ taeaQfGp8HISlW0xlrEdr9pUuVc5dws= =duN+ -----END PGP SIGNATURE----- --=-=-=--