diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-09-20 05:26:18 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-10-12 00:35:44 +0200 |
commit | 9c15c3305c929e3b955e42a8a16ffefadc3f90f1 (patch) | |
tree | 954176645e0aa5a70049e6ea3a93e25c8ed87c56 | |
parent | 9958390ace65f6d51687db4cb1c9385243fff289 (diff) | |
download | strace-9c15c3305c929e3b955e42a8a16ffefadc3f90f1.tar.gz |
xlat: add FAN_REPORT_PIDFD to fan_init_flags
* src/xlat/fan_init_flags.in (FAN_REPORT_PIDFD): New constant,
introduced by Linux commit v5.15-rc1~219^2~4.
* tests/fanotify_init.c: Update expected output.
* NEWS: Mention this.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/xlat/fan_init_flags.in | 1 | ||||
-rw-r--r-- | tests/fanotify_init.c | 6 |
3 files changed, 5 insertions, 4 deletions
@@ -10,7 +10,7 @@ Noteworthy changes in release ?.?? (????-??-??) syscall. * Implemented decoding of SECCOMP_* ioctl commands. * Enhanced decoding of io_uring_register and times syscalls. - * Updated lists of IORING_* and MPOL_* constants. + * Updated lists of FAN_REPORT_*, IORING_* and MPOL_* constants. * Bug fixes * Fixed printing of struct bpf_prog_info.map_ids array. diff --git a/src/xlat/fan_init_flags.in b/src/xlat/fan_init_flags.in index 69501bbbc..a093eb3b3 100644 --- a/src/xlat/fan_init_flags.in +++ b/src/xlat/fan_init_flags.in @@ -3,6 +3,7 @@ FAN_NONBLOCK 0x00000002 FAN_UNLIMITED_QUEUE 0x00000010 FAN_UNLIMITED_MARKS 0x00000020 FAN_ENABLE_AUDIT 0x00000040 +FAN_REPORT_PIDFD 0x00000080 FAN_REPORT_TID 0x00000100 FAN_REPORT_FID 0x00000200 FAN_REPORT_DIR_FID 0x00000400 diff --git a/tests/fanotify_init.c b/tests/fanotify_init.c index 092b9bcc6..b290e1ea7 100644 --- a/tests/fanotify_init.c +++ b/tests/fanotify_init.c @@ -46,9 +46,9 @@ main(void) { (kernel_ulong_t) 0xffffffffffffffffULL, "0xc /* FAN_CLASS_??? */|FAN_CLOEXEC|FAN_NONBLOCK|" "FAN_UNLIMITED_QUEUE|FAN_UNLIMITED_MARKS|" - "FAN_ENABLE_AUDIT|FAN_REPORT_TID|FAN_REPORT_FID|" - "FAN_REPORT_DIR_FID|FAN_REPORT_NAME|" - "0xfffff080" }, + "FAN_ENABLE_AUDIT|FAN_REPORT_PIDFD|FAN_REPORT_TID|" + "FAN_REPORT_FID|FAN_REPORT_DIR_FID|FAN_REPORT_NAME|" + "0xfffff000" }, }; static const struct strval event_f_flags[] = { { F8ILL_KULONG_MASK, "O_RDONLY" }, |