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 <ldv@altlinux.org>
This commit is contained in:
Eugene Syromyatnikov 2018-09-11 01:45:30 +02:00 committed by Dmitry V. Levin
parent 7e15b04b20
commit 5be335ceaa
3 changed files with 7 additions and 3 deletions

1
NEWS
View File

@ -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

View 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" },

View 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