]> granicus.if.org Git - strace/commitdiff
xlat: add FAN_ENABLE_AUDIT and FAN_REPORT_TID to fan_init_flags
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 10 Sep 2018 23:45:30 +0000 (01:45 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 26 Dec 2018 01:59:38 +0000 (01:59 +0000)
* 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 <ldv@altlinux.org>
NEWS
tests/fanotify_init.c
xlat/fan_init_flags.in

diff --git a/NEWS b/NEWS
index 27a2bfb4b00840c82f68ca03d0829f7731ac5745..4c9784ef6a2256c3ae8a81fe693a3b62991b2a11 100644 (file)
--- 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
index fa3bd5a93860406c49297fa45e37db6dd0669cce..f139d971dab6c4f59b1848557c4a0bdd2d21987b 100644 (file)
@@ -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" },
index ca33039236fda7d42951789ce2c0c0a03f480bea..54d681f8e85353d4bea996035a93dbce3b5008da 100644 (file)
@@ -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