From: Eugene Syromyatnikov Date: Mon, 10 Sep 2018 23:45:30 +0000 (+0200) Subject: xlat: add FAN_ENABLE_AUDIT and FAN_REPORT_TID to fan_init_flags X-Git-Tag: v4.26~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5be335ceaac0390ecf6bf72c933cecc1e78c546d;p=strace xlat: add FAN_ENABLE_AUDIT and FAN_REPORT_TID to fan_init_flags * xlat/fan_init_flags.in (FAN_ENABLE_AUDIT): New constant, introduced by Linux commit v4.15-rc1~130^2^2~11. (FAN_REPORT_TID): New constant, introduced by Linux commit v4.20-rc1~75^2~2. * NEWS: Mention this. * tests/fanotify_init.c (main): Update expected output. Co-Authored-by: Dmitry V. Levin --- diff --git a/NEWS b/NEWS index 27a2bfb4..4c9784ef 100644 --- a/NEWS +++ b/NEWS @@ -23,6 +23,7 @@ Noteworthy changes in release ?.?? (????-??-??) * Enhanced decoding of getsockopt SO_ERROR option. * Enhanced error diagnostics when the first exec fails. * Added %net as a short form of %network in syscall specifications. + * Updated the list of FAN_* constants. * Enhanced manual page. * Bug fixes diff --git a/tests/fanotify_init.c b/tests/fanotify_init.c index fa3bd5a9..f139d971 100644 --- a/tests/fanotify_init.c +++ b/tests/fanotify_init.c @@ -44,11 +44,12 @@ main(void) { F8ILL_KULONG_MASK, "FAN_CLASS_NOTIF" }, { (kernel_ulong_t) 0xffffffff0000000cULL, "0xc /* FAN_CLASS_??? */" }, - { (kernel_ulong_t) 0xdec0deddefaced04ULL, - "FAN_CLASS_CONTENT|0xefaced00 /* FAN_??? */" }, + { (kernel_ulong_t) 0xdec0deddefacec04ULL, + "FAN_CLASS_CONTENT|0xefacec00 /* FAN_??? */" }, { (kernel_ulong_t) 0xffffffffffffffffULL, "0xc /* FAN_CLASS_??? */|FAN_CLOEXEC|FAN_NONBLOCK|" - "FAN_UNLIMITED_QUEUE|FAN_UNLIMITED_MARKS|0xffffffc0" }, + "FAN_UNLIMITED_QUEUE|FAN_UNLIMITED_MARKS|" + "FAN_ENABLE_AUDIT|FAN_REPORT_TID|0xfffffe80" }, }; static const struct strval event_f_flags[] = { { F8ILL_KULONG_MASK, "O_RDONLY" }, diff --git a/xlat/fan_init_flags.in b/xlat/fan_init_flags.in index ca330392..54d681f8 100644 --- a/xlat/fan_init_flags.in +++ b/xlat/fan_init_flags.in @@ -2,3 +2,5 @@ FAN_CLOEXEC 0x00000001 FAN_NONBLOCK 0x00000002 FAN_UNLIMITED_QUEUE 0x00000010 FAN_UNLIMITED_MARKS 0x00000020 +FAN_ENABLE_AUDIT 0x00000040 +FAN_REPORT_TID 0x00000100