diff options
author | Amir Goldstein <amir73il@gmail.com> | 2021-11-29 23:15:34 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-12-15 16:04:56 +0300 |
commit | 3982534ba5ce45e890b2f5ef5e7372c1accd14c7 (patch) | |
tree | dfc99552f7b8fac5cc7b441d9f889799b0c71bea /include | |
parent | 3cf984e950c1c3f41d407ed31db33beb996be132 (diff) | |
download | linux-3982534ba5ce45e890b2f5ef5e7372c1accd14c7.tar.xz |
fanotify: record old and new parent and name in FAN_RENAME event
In the special case of FAN_RENAME event, we record both the old
and new parent and name.
Link: https://lore.kernel.org/r/20211129201537.1932819-9-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/fanotify.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/fanotify.h b/include/uapi/linux/fanotify.h index 60f73639a896..9d0e2dc5767b 100644 --- a/include/uapi/linux/fanotify.h +++ b/include/uapi/linux/fanotify.h @@ -28,6 +28,8 @@ #define FAN_EVENT_ON_CHILD 0x08000000 /* Interested in child events */ +#define FAN_RENAME 0x10000000 /* File was renamed */ + #define FAN_ONDIR 0x40000000 /* Event occurred against dir */ /* helper events */ |