patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: colby@colbyt.com
Cc: devel@spectrum-os.org
Subject: Re: [PATCH 0/5] vm: boot sub-VMs from dm-verity roots and enable IPE
Date: Fri, 03 Jul 2026 16:06:17 +0200	[thread overview]
Message-ID: <87v7awkw12.fsf@alyssa.is> (raw)
In-Reply-To: <HNpTXhvFWbuw-PNsOybYq6gFnwZdaVoI_e6YFFlv5v2VbPWqa4kCwLv84RjTNfTkvAZO0bunc9UXH6l5X0I0YPn0SnVBRHqUeop-IKcsr7Q=@colbyt.com>

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

colby@colbyt.com writes:

> So instinctively the path I took there was to do IPE on apple end to
> end from host to VM in an accountability chain, but not sure of the
> validity of my taste there -- I just like treating internal
> assumptions as hostile instead of trusted -- I was hoping to achieve
> an inter-vm attestation system which would use things like this, but
> tbh did not think deeply.
>

I would love to see something like that.  Just needs some more design
thought.  As it stands I don't think this is giving any more assurance
to VMs than they had before, but we definitely could — e.g. we could
prove to them that they're running on an unmodified (and therefore
presumably trustworthy) Spectrum host.

>
> On Thursday, July 2nd, 2026 at 7:22 AM, Alyssa Ross <hi@alyssa.is> wrote:
>
>> colby@colbyt.com writes:
>> 
>> > Yes this is me laying the groundwork for/ trying to solve 
>> >
>> > "Look into Integrity Policy Enhancement LSM
>> > Apparently this enforces that executables must be authenticated by dm-verity. Could we use this?"
>> >
>> > I may have forgotten to push all the files but I got it implemented and working --- only I did not want to push actual IPE policies in a patch, as that has a substantial possibility to break things.
>> 
>> Ah, yes.  I meant IPE on the host when I wrote that.  I'll update the
>> text to make that clearer.  I don't immediately see any value in IPE in
>> VMs.
>> 
>> > On Friday, June 26th, 2026 at 8:15 AM, Alyssa Ross <hi@alyssa.is> wrote:
>> >
>> >> colbyt <colby@colbyt.com> writes:
>> >> 
>> >> > This series changes the app VM and net VM root images to boot through
>> >> > dm-verity, then enables IPE kernel support for the sub-VMs and the
>> >> > Spectrum host rootfs.
>> >> >
>> >> > Each sub-VM disk now has a verity metadata partition and an EROFS root
>> >> > partition.  The build installs the root hash next to the disk image, and
>> >> > the VM boot paths pass that hash to a shared initramfs.  The initramfs
>> >> > uses the hash to find both partitions, opens /dev/mapper/root-verity, and
>> >> > switches into it read-only.
>> >> >
>> >> > The last two patches only enable kernel support for IPE.  They do not
>> >> > install an IPE policy.  With the existing generated kernel config,
>> >> > enabling SECURITY_IPE also enables the dm-verity root-hash provider, so
>> >> > later policy work can match files from verified roots.
>> >> 
>> >> Would you mind explaining your motivation / the direction you envisage
>> >> here in a bit more detail?  Given that the VM gets its root file system
>> >> and the corresponding verity hash from the same place (the host file
>> >> system), there's no immediate security benefit from using dm-verity,
>> >> right?  Is the idea rather to enable some sort of cool IPE thing for
>> >> which dm-verity is a requirement, but that's not implemented yet as part
>> >> of this series?
>> >> 
>> >> (I really appreciate the quality of your patches BTW — you've obviously
>> >> gone to some effort to identify and follow all the tiny little
>> >> conventions we have in the codebase.  Thank you!)
>> >> 
>> 

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

      reply	other threads:[~2026-07-03 14:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-25 20:20 [PATCH 0/5] vm: boot sub-VMs from dm-verity roots and enable IPE colbyt
2026-06-25 20:20 ` [PATCH 1/5] vm: generate dm-verity metadata for sub-VM roots colbyt
2026-06-25 20:20 ` [PATCH 2/5] vm: add shared initramfs for verified roots colbyt
2026-06-25 20:20 ` [PATCH 3/5] vm: boot sub-VMs through " colbyt
2026-06-25 20:20 ` [PATCH 4/5] vm: enable IPE in sub-VM kernels colbyt
2026-06-25 20:20 ` [PATCH 5/5] host/rootfs: enable IPE in the host kernel colbyt
2026-07-02 13:44   ` Alyssa Ross
2026-06-26 15:14 ` [PATCH 0/5] vm: boot sub-VMs from dm-verity roots and enable IPE Alyssa Ross
2026-06-26 19:12   ` colby
2026-07-02 13:43     ` Alyssa Ross
2026-07-02 23:16       ` colby
2026-07-03 14:06         ` Alyssa Ross [this message]

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=87v7awkw12.fsf@alyssa.is \
    --to=hi@alyssa.is \
    --cc=colby@colbyt.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/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).