summaryrefslogtreecommitdiffstats
path: root/libdm/misc
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2011-02-04 16:08:11 +0000
committerMilan Broz <mbroz@redhat.com>2011-02-04 16:08:11 +0000
commit2b29daaaa6ed375059b59ea44d1d641ffff4f2f5 (patch)
tree839fc9d2c59f1636c9f52ed2fdfd9810991fced0 /libdm/misc
parent135af49da5ebec0b597a49d4f136694d2cdc7899 (diff)
downloadlvm2-2b29daaaa6ed375059b59ea44d1d641ffff4f2f5.tar.gz
lvm2-2b29daaaa6ed375059b59ea44d1d641ffff4f2f5.tar.xz
lvm2-2b29daaaa6ed375059b59ea44d1d641ffff4f2f5.zip
Suport DM_SECURE_DATA_FLAG.
It will be user for cryptsetup to ensure buffers are properly wiped when sending sensitive data (key).
Diffstat (limited to 'libdm/misc')
-rw-r--r--libdm/misc/dm-ioctl.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h
index fb11b5c7..c0313150 100644
--- a/libdm/misc/dm-ioctl.h
+++ b/libdm/misc/dm-ioctl.h
@@ -269,9 +269,9 @@ enum {
#define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
#define DM_VERSION_MAJOR 4
-#define DM_VERSION_MINOR 19
+#define DM_VERSION_MINOR 20
#define DM_VERSION_PATCHLEVEL 0
-#define DM_VERSION_EXTRA "-ioctl (2010-10-14)"
+#define DM_VERSION_EXTRA "-ioctl (2011-02-02)"
/* Status bits */
#define DM_READONLY_FLAG (1 << 0) /* In/Out */
@@ -330,4 +330,10 @@ enum {
*/
#define DM_UUID_FLAG (1 << 14) /* In */
+/*
+ * If set, all buffers are wiped after use. Used when sending
+ * or requesting sensitive data like crypt key.
+ */
+#define DM_SECURE_DATA_FLAG (1 << 15) /* In */
+
#endif /* _LINUX_DM_IOCTL_H */