From: Yureka <yuka@yuka.dev>
To: Alyssa Ross <hi@alyssa.is>
Cc: devel@spectrum-os.org, Demi Marie Obenour <demiobenour@gmail.com>
Subject: Re: [PATCH v3 2/5] host/rootfs: Sandbox router
Date: Tue, 9 Dec 2025 12:23:27 +0100 [thread overview]
Message-ID: <f47040ea-034c-4475-9098-cfc18d880e40@yuka.dev> (raw)
In-Reply-To: <87pl8v7dfu.fsf@alyssa.is>
On 12/3/25 17:11, Alyssa Ross wrote:
> Yureka <yuka@yuka.dev> writes:
>
>> On 12/3/25 16:54, Demi Marie Obenour wrote:
>>> This needs very little access to the system.
>>>
>>> Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
>>> ---
>>> .../template/data/service/spectrum-router/run | 19 ++++++++++++++++---
>>> 1 file changed, 16 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run
>>> index 7b3e3db3b109ba1c8d195c7c47d50d0cfbc30bd5..ef68cd638c092b53cc714a5d65bbfa3b49585346 100755
>>> --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run
>>> +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run
>>> @@ -4,6 +4,19 @@
>>>
>>> importas -i VM VM
>>>
>>> -export RUST_LOG spectrum-router=debug,info
>>> -spectrum-router --app-listen-path ${VM}/router-app.sock --driver-listen-path ${VM}/router-driver.sock
>>> -
>>> +bwrap
>>> + --unshare-all
>>> + --unshare-user
>>> + --dev-bind / /
>>> + --setenv RUST_LOG spectrum-router=debug,info
>>> + --tmpfs /tmp
>>> + --dev /dev
>>> + --tmpfs /dev/shm
>>> + --ro-bind /nix /nix
>>> + --ro-bind /etc /etc
>>> + --tmpfs /run
>> This won't work. The router sets up unix sockets in /run which are
>> accessed by the vmm.
>>> + --ro-bind /usr /usr
>>> + --ro-bind /lib /lib
>>> + --bind $VM $VM
> Doesn't this line cover the sockets, or are there more outside of this
> directory?
True.
>
>>> + --
>>> + spectrum-router --app-listen-path ${VM}/router-app.sock --driver-listen-path ${VM}/router-driver.sock
Ok from me if it passes the integration tests:
Reviewed-by: Yureka Lilian <yureka@cyberchaos.dev>
next prev parent reply other threads:[~2025-12-09 11:23 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-29 22:31 [PATCH] host/rootfs: Sandbox crosvm Demi Marie Obenour
2025-12-02 3:46 ` [PATCH v2 0/4] Partially sandbox Cloud Hypervisor, crosvm, virtiofsd, and the router Demi Marie Obenour
2025-12-02 3:46 ` [PATCH v2 1/4] host/rootfs: Sandbox crosvm Demi Marie Obenour
2025-12-03 12:43 ` Alyssa Ross
2025-12-03 12:48 ` Demi Marie Obenour
2025-12-03 13:09 ` Alyssa Ross
2025-12-04 13:28 ` Alyssa Ross
2025-12-02 3:46 ` [PATCH v2 2/4] host/rootfs: Sandbox router Demi Marie Obenour
2025-12-02 3:46 ` [PATCH v2 3/4] host/rootfs: Sandbox virtiofsd Demi Marie Obenour
2025-12-02 3:46 ` [PATCH v2 4/4] host/rootfs: Sandbox Cloud Hypervisor Demi Marie Obenour
2025-12-02 13:14 ` [PATCH v2 0/4] Partially sandbox Cloud Hypervisor, crosvm, virtiofsd, and the router Alyssa Ross
2025-12-03 15:54 ` [PATCH v3 0/5] " Demi Marie Obenour
2025-12-03 15:54 ` [PATCH v3 1/5] host/rootfs: Sandbox crosvm Demi Marie Obenour
2025-12-03 15:54 ` [PATCH v3 2/5] host/rootfs: Sandbox router Demi Marie Obenour
2025-12-03 16:06 ` Yureka
2025-12-03 16:11 ` Alyssa Ross
2025-12-09 11:23 ` Yureka [this message]
2025-12-03 15:54 ` [PATCH v3 3/5] host/rootfs: Unshare a few more namespaces in virtiofsd Demi Marie Obenour
2025-12-03 15:54 ` [PATCH v3 4/5] host/rootfs: Sandbox Cloud Hypervisor Demi Marie Obenour
2025-12-03 15:54 ` [PATCH v3 5/5] host/rootfs: Try to protect the portal and dbus daemon Demi Marie Obenour
2025-12-04 2:20 ` [PATCH v4 0/6] Partially sandbox Cloud Hypervisor, crosvm, virtiofsd, and the router Demi Marie Obenour
2025-12-04 2:20 ` [PATCH v4 1/6] host/rootfs: Sandbox crosvm Demi Marie Obenour
2025-12-04 13:03 ` Alyssa Ross
2025-12-04 2:20 ` [PATCH v4 2/6] host/rootfs: Sandbox router Demi Marie Obenour
2025-12-04 13:47 ` Alyssa Ross
2025-12-04 2:20 ` [PATCH v4 3/6] host/rootfs: Unshare a few more namespaces in virtiofsd Demi Marie Obenour
2025-12-04 14:03 ` Alyssa Ross
2025-12-04 2:20 ` [PATCH v4 4/6] host/rootfs: Sandbox Cloud Hypervisor Demi Marie Obenour
2025-12-04 14:35 ` Alyssa Ross
2025-12-06 17:35 ` Demi Marie Obenour
2025-12-06 17:46 ` Alyssa Ross
2025-12-06 17:47 ` Demi Marie Obenour
2025-12-06 17:56 ` Alyssa Ross
2025-12-04 2:20 ` [PATCH v4 5/6] host/rootfs: Try to protect the portal and dbus daemon Demi Marie Obenour
2025-12-04 14:23 ` Alyssa Ross
2025-12-04 2:20 ` [PATCH v4 6/6] host/rootfs: "Sandbox" Weston Demi Marie Obenour
2025-12-04 14:47 ` Alyssa Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f47040ea-034c-4475-9098-cfc18d880e40@yuka.dev \
--to=yuka@yuka.dev \
--cc=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
--cc=hi@alyssa.is \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).