Systemd/src/machine
Lennart Poettering 18b5886e56 dissect: add support for encrypted images
This adds support to the image dissector to deal with encrypted images (only
LUKS). Given that we now have a neatly isolated image dissector codebase, let's
add a new feature to it: support for automatically dealing with encrypted
images. This is then exposed in systemd-dissect and nspawn.

It's pretty basic: only support for passphrase-based encryption.

In order to ensure that "systemd-dissect --mount" results in mount points whose
backing LUKS DM devices are cleaned up automatically we use the DM_DEV_REMOVE
ioctl() directly on the device (in DM_DEFERRED_REMOVE mode). libgcryptsetup at
the moment doesn't provide a proper API for this. Thankfully, the ioctl() API
is pretty easy to use.
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 dissect: add support for encrypted images 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