Skip to content

Commit 0a07603

Browse files
amir73iljankara
authored andcommitted
fanotify: reserve event bit of deprecated FAN_DIR_MODIFY
Avoid reusing it, because we would like to reserve it for future FAN_PATH_MODIFY pre-content event. Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]> Link: https://patch.msgid.link/632d9f80428e2e7a6b6a8ccc2925d87c92bbb518.1731684329.git.josef@toxicpanda.com
1 parent 4edcb9f commit 0a07603

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/linux/fsnotify_backend.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#define FS_OPEN_PERM 0x00010000 /* open event in an permission hook */
5656
#define FS_ACCESS_PERM 0x00020000 /* access event in a permissions hook */
5757
#define FS_OPEN_EXEC_PERM 0x00040000 /* open/exec event in a permission hook */
58+
/* #define FS_DIR_MODIFY 0x00080000 */ /* Deprecated (reserved) */
5859

5960
/*
6061
* Set on inode mark that cares about things that happen to its children.

include/uapi/linux/fanotify.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define FAN_OPEN_PERM 0x00010000 /* File open in perm check */
2626
#define FAN_ACCESS_PERM 0x00020000 /* File accessed in perm check */
2727
#define FAN_OPEN_EXEC_PERM 0x00040000 /* File open/exec in perm check */
28+
/* #define FAN_DIR_MODIFY 0x00080000 */ /* Deprecated (reserved) */
2829

2930
#define FAN_EVENT_ON_CHILD 0x08000000 /* Interested in child events */
3031

0 commit comments

Comments
 (0)