Systemd/src/machine
Lennart Poettering 4623e8e6ac nspawn/dissect: automatically discover dm-verity verity partitions
This adds support for discovering and making use of properly tagged dm-verity
data integrity partitions. This extends both systemd-nspawn and systemd-dissect
with a new --root-hash= switch that takes the root hash to use for the root
partition, and is otherwise fully automatic.

Verity partitions are discovered automatically by GPT table type UUIDs, as
listed in
https://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/
(which I updated prior to this change, to include new UUIDs for this purpose.

mkosi with https://github.com/systemd/mkosi/pull/39 applied may generate images
that carry the necessary integrity data. With that PR and this commit, the
following simply lines suffice to boot up an integrity-protected container image:

```
 # mkdir test
 # cd test
 # mkosi --verity
 # systemd-nspawn -i ./image.raw -bn
```

Note that mkosi writes the image file to "image.raw" next to a a file
"image.roothash" that contains the root hash. systemd-nspawn will look for that
file and use it if it exists, in case --root-hash= is not specified explicitly.
2016-12-07 18:38:41 +01:00
..
.gitignore machined: introduce polkit for OpenLogin() call 2014-12-23 21:28:48 +01:00
image-dbus.c nspawn/dissect: automatically discover dm-verity verity partitions 2016-12-07 18:38:41 +01:00
image-dbus.h machined: add API for querying the OS release of a machine image 2016-12-07 18:38:41 +01:00
machine-dbus.c machined: add API for querying the OS release of a machine image 2016-12-07 18:38:41 +01:00
machine-dbus.h machined: add API for querying the OS release of a machine image 2016-12-07 18:38:41 +01:00
machine.c Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
machine.h machined: rework copy-from/copy-to operation to use generic Operation object 2016-05-02 11:17:06 +02:00
machinectl.c machined: add API for querying the OS release of a machine image 2016-12-07 18:38:41 +01:00
machined-dbus.c machined: add API for querying the OS release of a machine image 2016-12-07 18:38:41 +01:00
machined.c Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
machined.h machined: run clone operation asynchronously in the background 2016-05-02 11:15:30 +02:00
Makefile machined: split out machine registration stuff from logind 2013-07-02 03:47:23 +02:00
operation.c tree-wide: use mfree more 2016-10-16 23:35:39 -04:00
operation.h machined: "machinectl clean" can take a while, do it asynchronously from a background process 2016-06-24 16:01:14 +02:00
org.freedesktop.machine1.conf machined: add API for querying the OS release of a machine image 2016-12-07 18:38:41 +01:00
org.freedesktop.machine1.policy.in machine: policykit string fixes 2015-08-25 18:37:16 +02:00
org.freedesktop.machine1.service machined: split out machine registration stuff from logind 2013-07-02 03:47:23 +02:00
test-machine-tables.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00