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 31DAD15A64; Mon, 15 Dec 2025 12:28:13 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 213C715A5E; Mon, 15 Dec 2025 12:28:11 +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 fhigh-b6-smtp.messagingengine.com (fhigh-b6-smtp.messagingengine.com [202.12.124.157]) by atuin.qyliss.net (Postfix) with ESMTPS id E0A8A15A56 for ; Mon, 15 Dec 2025 12:28:09 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 445047A010C; Mon, 15 Dec 2025 07:28:07 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Mon, 15 Dec 2025 07:28:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-transfer-encoding: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=1765801687; x= 1765888087; bh=KN0AJpWhlPmvH2NGJ2MsqmBgn4rBUIFpgT7BPtjgUOQ=; b=b 9YYY32xMkEU9ZI0ExWbm7inD+RwZuPLI///AzVyGOG0smvxMObIWx+COnduxkSon nJqVZrSv0J6Mqc9w/tVpC9T1Hmm6//Ddkn/zB11QnKgBlcLRWYqwhvmpwTUs45EX ma7Zp0AZCbXCGID0VJ6bXyBEoKNO5wPaslSofNgqS5U/00zL/qyCCfv4hiqQWvlF e9dCWkuIw4QDX4yy93V4bEVJmoCwSwTp59UY8UfCAZEBaJf1TT7LnhlQMhdL8bA7 Fid1n2aGlMF/sK7xtX92HqVnJyQsSxDPlLRu9rtOmvtwprcHty6Wvw6vo5T3tT1t mjArO1jdoNmoWFnxRHgaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1765801687; x=1765888087; bh=K N0AJpWhlPmvH2NGJ2MsqmBgn4rBUIFpgT7BPtjgUOQ=; b=DLCnmmj6eGwNIaIht nvFE3NhgKoOjX3qvADm3bI2ai1feQIrGPVrO8VF/BjYcAFWtYa03UENbq5fbrESp X+FdkNF8ogpNPkKONxOj4LH0+8xNGmwHtsAeb+LJu1dQ3HERvQWAW6JLl49Vwax3 CBGufZDJh+mPAvorMD1E5UjfUSV+QBnTTpc/oLVpeAIlQU1uUF0SzeyGolhed+YM bEKDy+aS3OEb2HcYqb+p+cFJkbXp4H/4R7OAPPf8UWgDGZxT8uIFg+u0gVEorOZx Rwg5rtmc5OGkWKff25EHo3psThKU79QpsYKVkzvIRbaMWu8l+wK1ivUwlI0snYqT xT1Yw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefieekudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeeijedtle fgiefgfeetudetteeggeegteeufeduteelfefggfduhfetieduueevleenucffohhmrghi nhepphhrohhpohhsvgdrhhhoshhtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrihhspdhnsggprhgtphhtthhopedv pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguvghmihhosggvnhhouhhrsehgmh grihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhesshhpvggtthhruhhmqdhoshdrohhr gh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Dec 2025 07:28:06 -0500 (EST) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 137846D7F5A9; Mon, 15 Dec 2025 13:28:01 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH 2/2] host/rootfs: disable CONFIG_PROC_SCSI in kernel Date: Mon, 15 Dec 2025 13:27:08 +0100 Message-ID: <20251215122707.116898-3-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251215122707.116898-1-hi@alyssa.is> References: <20251215122707.116898-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: GAU5SYMJWOPT6GDU6USLXGN3JTLIO6MM X-Message-ID-Hash: GAU5SYMJWOPT6GDU6USLXGN3JTLIO6MM 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: Demi Marie Obenour 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: This is a legacy interface. I doubt anything in Spectrum depends on it. The previous approach of masking it out with Bubblewrap failed on aarch64, where it was already disabled in the kernel config. Fixes: 62590b8 ("host/rootfs: Sandbox crosvm") Fixes: ec47d36 ("host/rootfs: Sandbox Cloud Hypervisor") Signed-off-by: Alyssa Ross --- This also means the floodgates are now open for any other rootfs kernel changes that anybody wants to propose. host/rootfs/default.nix | 6 +++++- .../vm-services/template/data/service/vhost-user-gpu/run | 2 -- host/rootfs/image/usr/bin/run-vmm | 2 -- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix index 66aa366..26757ef 100644 --- a/host/rootfs/default.nix +++ b/host/rootfs/default.nix @@ -49,7 +49,11 @@ let system.stateVersion = trivial.release; }); - kernel = linux_latest; + kernel = linux_latest.override { + structuredExtraConfig = with lib.kernel; { + SCSI_PROC_FS = no; + }; + }; appvm = callSpectrumPackage ../../img/app { inherit (foot) terminfo; }; netvm = callSpectrumPackage ../../vm/sys/net { inherit (foot) terminfo; }; 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/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run index e063a82..bdd842e 100755 --- 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/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run @@ -31,8 +31,6 @@ bwrap --disable-userns --proc /proc --ro-bind /proc/sys /proc/sys - --tmpfs /proc/scsi - --remount-ro /proc/scsi --tmpfs /proc/acpi --remount-ro /proc/acpi --tmpfs /proc/fs diff --git a/host/rootfs/image/usr/bin/run-vmm b/host/rootfs/image/usr/bin/run-vmm index e30b14c..d71f7eb 100755 --- a/host/rootfs/image/usr/bin/run-vmm +++ b/host/rootfs/image/usr/bin/run-vmm @@ -104,8 +104,6 @@ bwrap --bind /run /run --proc /proc --ro-bind /proc/sys /proc/sys - --tmpfs /proc/scsi - --remount-ro /proc/scsi --tmpfs /proc/acpi --remount-ro /proc/acpi --tmpfs /proc/fs -- 2.51.0