diff options
author | Alasdair G Kergon <agk@redhat.com> | 2021-07-13 02:06:04 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-23 16:49:28 +0200 |
commit | f853a1bc7afdebb44aeb8c1167e8784d155cad84 (patch) | |
tree | 7a0dc6851ae0527d5843a20b012dddf84a389ede /libdm/misc | |
parent | 707e7d762e2668af308457fd6d8b8375e18b0207 (diff) | |
download | lvm2-f853a1bc7afdebb44aeb8c1167e8784d155cad84.tar.gz |
libdm: dmsetup measure support for IMA
Add support for DM_IMA_MEASUREMENT_FLAG with
DM_TABLE_STATUS_CMD.
This feature requires DM version 4.45 (5.15+ kernels)
Diffstat (limited to 'libdm/misc')
-rw-r--r-- | libdm/misc/dm-ioctl.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h index cecfd5909..cdb38f639 100644 --- a/libdm/misc/dm-ioctl.h +++ b/libdm/misc/dm-ioctl.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2001 - 2003 Sistina Software (UK) Limited. - * Copyright (C) 2004 - 2017 Red Hat, Inc. All rights reserved. + * Copyright (C) 2004 - 2021 Red Hat, Inc. All rights reserved. * * This file is released under the LGPL. */ @@ -287,9 +287,9 @@ enum { #define DM_GET_TARGET_VERSION _IOWR(DM_IOCTL, DM_GET_TARGET_VERSION_CMD, struct dm_ioctl) #define DM_VERSION_MAJOR 4 -#define DM_VERSION_MINOR 36 +#define DM_VERSION_MINOR 45 #define DM_VERSION_PATCHLEVEL 0 -#define DM_VERSION_EXTRA "-ioctl (2017-06-09)" +#define DM_VERSION_EXTRA "-ioctl (2021-03-22)" /* Status bits */ #define DM_READONLY_FLAG (1 << 0) /* In/Out */ @@ -377,4 +377,10 @@ enum { */ #define DM_INTERNAL_SUSPEND_FLAG (1 << 18) /* Out */ +/* + * If set, returns in the in buffer passed by UM, the raw table information + * that would be measured by IMA subsystem on device state change. + */ +#define DM_IMA_MEASUREMENT_FLAG (1 << 19) /* In */ + #endif /* _LINUX_DM_IOCTL_H */ |