Hi,
this series refactors some guestfish code (not much), and exposes it
via Common_utils, so it is possible to decrypt LUKS partitions when
using virt-customize, virt-get-kernel, virt-sparsify, and virt-sysprep.
This brings them closer in features with C tools.
Most probably a couple more of other OCaml-based tools (virt-v2v to
convert encrypted guests, and virt-builder to use encrypted templates),
but that is left for implementation at a later time.
Thanks,
Pino Toscano (3):
fish: move disk decryption helpers in own file
mllib: expose disk decrypt functionalities
OCaml tools: add crypto support (RHBZ#1362649)
align/Makefile.am | 1 +
cat/Makefile.am | 1 +
customize/customize_main.ml | 5 +-
customize/virt-customize.pod | 12 +++++
df/Makefile.am | 1 +
diff/Makefile.am | 1 +
edit/Makefile.am | 1 +
fish/Makefile.am | 1 +
fish/decrypt.c | 102 +++++++++++++++++++++++++++++++++++++++++
fish/inspect.c | 68 ---------------------------
fish/options.h | 4 +-
format/Makefile.am | 1 +
fuse/Makefile.am | 1 +
get-kernel/get_kernel.ml | 5 +-
get-kernel/virt-get-kernel.pod | 12 +++++
inspector/Makefile.am | 1 +
mllib/Makefile.am | 3 ++
mllib/common_utils-c.c | 75 ++++++++++++++++++++++++++++++
mllib/common_utils.ml | 22 ++++++++-
mllib/common_utils.mli | 10 +++-
rescue/Makefile.am | 1 +
sparsify/cmdline.ml | 2 +-
sparsify/copying.ml | 3 ++
sparsify/in_place.ml | 3 ++
sparsify/virt-sparsify.pod | 12 +++++
sysprep/main.ml | 5 +-
sysprep/virt-sysprep.pod | 12 +++++
27 files changed, 290 insertions(+), 75 deletions(-)
create mode 100644 fish/decrypt.c
create mode 100644 mllib/common_utils-c.c
--
2.7.4