History

fanotify: Reserve UAPI bits for FAN_FS_ERROR

FAN_FS_ERROR allows reporting of event type FS_ERROR to userspace, which is a mechanism to report file system wide problems via fanotify. This commit preallocate userspace visible bits to match the FS_ERROR event.

Gabriel Krisman Bertazi committed 5 years ago

Commit 8d11a4f1 parent 9daa8112 files · +2 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/fanotify.h+1−0
@@ -20,6 +20,7 @@ · 19 unmodified lines
20#define FAN_OPEN_EXEC 0x00001000 /* File was opened for exec */20#define FAN_OPEN_EXEC 0x00001000 /* File was opened for exec */
21 21
22#define FAN_Q_OVERFLOW 0x00004000 /* Event queued overflowed */22#define FAN_Q_OVERFLOW 0x00004000 /* Event queued overflowed */
23#define FAN_FS_ERROR 0x00008000 /* Filesystem error */
23 24
24#define FAN_OPEN_PERM 0x00010000 /* File open in perm check */25#define FAN_OPEN_PERM 0x00010000 /* File open in perm check */
25#define FAN_ACCESS_PERM 0x00020000 /* File accessed in perm check */26#define FAN_ACCESS_PERM 0x00020000 /* File accessed in perm check */