Hi,
the following series adds a --key option in the majority of tools: this
makes it possible to pass LUKS credentials programmatically, avoid the
need to manually input them, or unsafely pass them via stdin.
Thanks,
Pino Toscano (2):
mltools: create a cmdline_options struct
Introduce a --key option in tools that accept keys
builder/cmdline.ml | 2 +-
builder/repository_main.ml | 2 +-
cat/cat.c | 6 +
cat/log.c | 6 +
cat/ls.c | 6 +
cat/tail.c | 12 +-
cat/virt-cat.pod | 17 +++
cat/virt-log.pod | 17 +++
cat/virt-ls.pod | 17 +++
cat/virt-tail.pod | 17 +++
common/mltools/getopt_tests.ml | 2 +-
common/mltools/machine_readable_tests.ml | 2 +-
common/mltools/tools_utils-c.c | 44 ++++++-
common/mltools/tools_utils.ml | 43 ++++++-
common/mltools/tools_utils.mli | 20 ++-
common/options/decrypt.c | 4 +-
common/options/inspect.c | 4 +-
common/options/keys.c | 155 +++++++++++++++++++++++
common/options/options.h | 40 +++++-
customize/customize_main.ml | 4 +-
customize/virt-customize.pod | 17 +++
dib/cmdline.ml | 2 +-
diff/diff.c | 9 +-
diff/virt-diff.pod | 17 +++
edit/edit.c | 6 +
edit/virt-edit.pod | 17 +++
fish/fish.c | 6 +
fish/guestfish.pod | 17 +++
fuse/guestmount.c | 6 +
fuse/guestmount.pod | 17 +++
get-kernel/get_kernel.ml | 8 +-
get-kernel/virt-get-kernel.pod | 17 +++
inspector/inspector.c | 9 +-
inspector/virt-inspector.pod | 17 +++
rescue/rescue.c | 1 +
resize/resize.ml | 2 +-
sparsify/cmdline.ml | 4 +-
sparsify/cmdline.mli | 1 +
sparsify/copying.ml | 4 +-
sparsify/copying.mli | 2 +-
sparsify/in_place.ml | 4 +-
sparsify/in_place.mli | 2 +-
sparsify/sparsify.ml | 2 +
sparsify/virt-sparsify.pod | 17 +++
sysprep/main.ml | 8 +-
sysprep/virt-sysprep.pod | 17 +++
v2v/cmdline.ml | 4 +-
v2v/cmdline.mli | 1 +
v2v/copy_to_local.ml | 2 +-
v2v/v2v.ml | 2 +-
v2v/virt-v2v.pod | 17 +++
51 files changed, 626 insertions(+), 49 deletions(-)
--
2.17.1