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 E464E1DB0A; Wed, 10 Dec 2025 12:48:40 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id AAADB1D966; Wed, 10 Dec 2025 12:48:28 +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-a6-smtp.messagingengine.com (fhigh-a6-smtp.messagingengine.com [103.168.172.157]) by atuin.qyliss.net (Postfix) with ESMTPS id 951AA1D9BE for ; Wed, 10 Dec 2025 12:48:24 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id A911614000C3 for ; Wed, 10 Dec 2025 07:48:21 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 10 Dec 2025 07:48:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=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=1765370901; x= 1765457301; bh=kWQMcOEwqg3bJlYh1VGbuLlmmS5Cud0KZGjLuJswGk0=; b=e OQglV5ct69q6FG24qTRYyYzuuaPX2YTBshfY+/whU3pOcXdQEp0jUEID97txGK+o l07EPtvh+JfZfGhcKpLtl8ACFbFeRKOAJrEpdAJC1rMaoBzFciHwD8kPxmtuFFhe /xMiDAYnuuAmQ6wv8BK8i73nFvmrkICgnw42ISLoOrA7IfNvvQXE/NJjuS/lBcbk fIZ2tKXoMAEPBaYjEeR2OcEgRV4pvKs64SICt0rqSEnkBdWyfcinoB4EwrRzjeO3 yRLGo0pgp4K0FBxq9ZdqaY9uh7sbjx4swCDPhCy4nsKCSdzrXFdDPCFZygGtbU9b 94tt4S7cejzYkKbPRdXaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1765370901; x=1765457301; bh=kWQMcOEwqg3bJlYh1VGbuLlmmS5C ud0KZGjLuJswGk0=; b=ylKEycP3N8U6DnEncb1y2NudDFqMKh3pcGpVfD3Yz++x bEEs5uf1vghATIOMV1QQMR8SVmFmTNe549ZYSbzN41JBEgCptQsRGY4B2zw/8XXm O/jnrxK8r90zsAEmc0dFMC+4NndGl/u9qwEXLfyUMu3FnW3xZrqytpvB7b5MaNP5 8LzHr+7CA6xAgQ74+Y0ubuekdpWzvZFWKPEH3mixMRRz4ZSiaAW8YASlK59kpBnY SDVEaXhgF3z2aA+sDx0dA0u2yEs65eKCXiejlFL4N6pAQB5XeeCy834b4Mymk0l+ 5zL4royp3plq8WTNLvhpLEMk9YsvmKb1omFkAUdqog== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvvdegjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertdertd dtnecuhfhrohhmpeetlhihshhsrgcutfhoshhsuceohhhisegrlhihshhsrgdrihhsqeen ucggtffrrghtthgvrhhnpefgfedukedvleeileeludefveehgeelgfegvddujedvtdffue euveffheeljeekvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehhihesrghlhihsshgrrdhishdpnhgspghrtghpthhtohepuddpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtohepuggvvhgvlhesshhpvggtthhruhhmqdhoshdrohhr gh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 10 Dec 2025 07:48:21 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id 5E71E6C8FD45; Wed, 10 Dec 2025 13:48:05 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH 2/8] host/rootfs: move vsock sockets out of VM dir Date: Wed, 10 Dec 2025 13:47:51 +0100 Message-ID: <20251210124757.1080443-2-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251210124757.1080443-1-hi@alyssa.is> References: <20251210124757.1080443-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: Q7KK6IAF35LLMPCS2BGG6HMWC2MQXA62 X-Message-ID-Hash: Q7KK6IAF35LLMPCS2BGG6HMWC2MQXA62 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: This will allow xdg-desktop-portal-spectrum-host to be run as a user without access to the VM directory. Signed-off-by: Alyssa Ross --- .../template/data/service/xdg-desktop-portal-spectrum-host/run | 3 ++- tools/start-vmm/lib.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/run index d2bf78ce..57e893d3 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/run @@ -6,7 +6,8 @@ importas -i VM VM export DBUS_SESSION_BUS_ADDRESS unix:path=/run/vm/by-id/${VM}/portal-bus -s6-ipcserver-socketbinder -a 0700 /run/vm/by-id/${VM}/vsock_219 +if { mkdir -p /run/vsock/${VM} } +s6-ipcserver-socketbinder -a 0700 /run/vsock/${VM}/vsock_219 # Notify readiness. if { fdmove 1 3 echo } diff --git a/tools/start-vmm/lib.rs b/tools/start-vmm/lib.rs index b44e0375..52c96c5e 100644 --- a/tools/start-vmm/lib.rs +++ b/tools/start-vmm/lib.rs @@ -154,7 +154,7 @@ pub fn vm_config(vm_dir: &Path) -> Result { }, vsock: VsockConfig { cid: 3, - socket: vm_dir.join("vsock").into_os_string().into_string().unwrap(), + socket: format!("/run/vsock/{vm_name}/vsock"), }, landlock_enable: true, landlock_rules: vec![ -- 2.51.0