patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: Demi Marie Obenour <demiobenour@gmail.com>
Cc: Spectrum OS Development <devel@spectrum-os.org>
Subject: Re: Why is /run/vm/by-id/${VM} writable by the VMM?
Date: Wed, 15 Jul 2026 20:54:13 +0200	[thread overview]
Message-ID: <8733xkqe22.fsf@alyssa.is> (raw)
In-Reply-To: <0d8076ca-dd4d-42c2-9806-0f78841ae397@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1315 bytes --]

Demi Marie Obenour <demiobenour@gmail.com> writes:

> On 7/13/26 05:04, Alyssa Ross wrote:
>> Demi Marie Obenour <demiobenour@gmail.com> writes:
>> 
>>> This seems to be a fairly significant hole in the VMM's sandbox.
>>> Various code operates in that directory and isn't secure against
>>> symlink attacks.
>>>
>>> Does the VMM really need write access to that directory?  Could it
>>> be given access to a subdirectory that is mounted "nosymfollow"?
>> 
>> I think it's just so it can create e.g. the serial file.  That could
>> indeed be moved to a subdirectory.  The ideal solution is of course for
>> Cloud Hypervisor to be able to accept every file it would otherwise
>> create as an open file descriptor, which I expect will happen
>> eventually.
>
> Should it be moved to a subdirectory for now?  That would make the
> sandbox meaningful in practice.

I suppose it could be.  Might make more sense to dedicate efforts
towards fixing Cloud Hypervisor to accept file descriptors for the ~2
paths it currently needs to create, though.  (That's obviously more
work, but also more useful.)  If we were to work around this in
Spectrum, we could keep symlinks outside the directory pointing into it,
to keep paths nice and avoid churn once we can put them back in the
parent directory.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2026-07-15 19:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-11 19:04 Why is /run/vm/by-id/${VM} writable by the VMM? Demi Marie Obenour
2026-07-13  9:04 ` Alyssa Ross
2026-07-13 17:00   ` Demi Marie Obenour
2026-07-15 18:54     ` Alyssa Ross [this message]
2026-07-16 17:06       ` Demi Marie Obenour
2026-07-21 16:05         ` Alyssa Ross
2026-07-21 20:11           ` Demi Marie Obenour
2026-07-22  8:18             ` 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=8733xkqe22.fsf@alyssa.is \
    --to=hi@alyssa.is \
    --cc=demiobenour@gmail.com \
    --cc=devel@spectrum-os.org \
    /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/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

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).