Displaying 4 results from an estimated 4 matches for "5c48a91eb".
2019 Nov 29
0
[PATCH 1/1] New API: luks_uuid
...the UUID of a LUKS device.
---
daemon/luks.c | 25 +++++++++++++++++++++++++
generator/actions_core.ml | 8 ++++++++
generator/proc_nr.ml | 1 +
lib/MAX_PROC_NR | 2 +-
4 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/daemon/luks.c b/daemon/luks.c
index 5c48a91eb..d631cb100 100644
--- a/daemon/luks.c
+++ b/daemon/luks.c
@@ -292,3 +292,28 @@ do_luks_kill_slot (const char *device, const char *key, int keyslot)
return 0;
}
+
+char *
+do_luks_uuid (const char *device)
+{
+ const char *argv[MAX_ARGS];
+ size_t i = 0;
+
+ ADD_ARG (argv, i, "cryptset...
2019 Nov 29
8
[PATCH 0/1] Allow UUIDs for --key identifiers.
This combined patch series enables to decrypt LUKS devices on inspection
by allowing the UUID of the LUKS device with the --key syntax.
I opted for reusing the option instead of adding another one, as I think
that device names and UUIDs are different enough that can be properly
distinguished.
A test for this (patch #4) can be applied only when the patches for
common are applied, and the
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...- r = command (&out, &err, str_ls, "-laZ", spath, NULL);
+ r = command (&out, &err, "ls", "-laZ", spath, NULL);
if (r == -1) {
reply_with_error ("%s", err);
free (out);
diff --git a/daemon/luks.c b/daemon/luks.c
index 53bb820d6..5c48a91eb 100644
--- a/daemon/luks.c
+++ b/daemon/luks.c
@@ -28,12 +28,10 @@
#define MAX_ARGS 64
-GUESTFSD_EXT_CMD(str_cryptsetup, cryptsetup);
-
int
optgroup_luks_available (void)
{
- return prog_exists (str_cryptsetup);
+ return prog_exists ("cryptsetup");
}
/* Callers must also cal...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.