summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-10-11 21:00:58 +0200
committerEugene Syromyatnikov <evgsyr@gmail.com>2021-10-12 00:36:13 +0200
commit3b5f7f1f42f1e71a5ddd5262c9a5a9476a44900e (patch)
tree524b5e6f29bb2d523275543a05fe64f275e0c10d
parent3159f23050bb7ce07897a0cc06f1f5956c7e0cec (diff)
downloadstrace-3b5f7f1f42f1e71a5ddd5262c9a5a9476a44900e.tar.gz
xlat: add DM_IMA_MEASUREMENT_FLAG to dm_flags
* src/xlat/dm_flags.in (DM_IMA_MEASUREMENT_FLAG): New constant, introduced by Linux commit v5.15-rc1~161^2~14. * tests/ioctl_dm.c: Update expected output. * NEWS: Mention it.
-rw-r--r--NEWS3
-rw-r--r--src/xlat/dm_flags.in1
-rw-r--r--tests/ioctl_dm.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 4aa5d3acc..899b51d86 100644
--- a/NEWS
+++ b/NEWS
@@ -10,7 +10,8 @@ Noteworthy changes in release ?.?? (????-??-??)
syscall.
* Implemented decoding of SECCOMP_* ioctl commands.
* Enhanced decoding of io_uring_register and times syscalls.
- * Updated lists of BTRFS_*, FAN_REPORT_*, IORING_* and MPOL_* constants.
+ * Updated lists of BTRFS_*, DM_*, FAN_REPORT_*, IORING_* and MPOL_*
+ constants.
* Bug fixes
* Fixed printing of struct bpf_prog_info.map_ids array.
diff --git a/src/xlat/dm_flags.in b/src/xlat/dm_flags.in
index be0cf92e1..7b7a5b603 100644
--- a/src/xlat/dm_flags.in
+++ b/src/xlat/dm_flags.in
@@ -17,3 +17,4 @@ DM_SECURE_DATA_FLAG
DM_DATA_OUT_FLAG
DM_DEFERRED_REMOVE
DM_INTERNAL_SUSPEND_FLAG
+DM_IMA_MEASUREMENT_FLAG
diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c
index aec057fbe..9e771dd6d 100644
--- a/tests/ioctl_dm.c
+++ b/tests/ioctl_dm.c
@@ -265,7 +265,7 @@ main(void)
"DM_NOFLUSH_FLAG|DM_QUERY_INACTIVE_TABLE_FLAG|"
"DM_UEVENT_GENERATED_FLAG|DM_UUID_FLAG|DM_SECURE_DATA_FLAG|"
"DM_DATA_OUT_FLAG|DM_DEFERRED_REMOVE|DM_INTERNAL_SUSPEND_FLAG|"
- "0xfff80080}) = -1 EBADF (%m)\n",
+ "DM_IMA_MEASUREMENT_FLAG|0xfff00080}) = -1 EBADF (%m)\n",
min_sizeof_dm_ioctl);
/* Normal call */