]> git.baikalelectronics.ru Git - kernel.git/commit
fanotify: record name info for FAN_DIR_MODIFY event
authorAmir Goldstein <amir73il@gmail.com>
Thu, 19 Mar 2020 15:10:21 +0000 (17:10 +0200)
committerJan Kara <jack@suse.cz>
Wed, 25 Mar 2020 22:17:10 +0000 (23:17 +0100)
commite9ff4c97b6a6e5c39aa0f08df4b195c8cc891e4c
tree3a53e6002e09819a82bf1475ba3f570801ac35a5
parented89da817d5aef577a35f833296fb58265d9b554
fanotify: record name info for FAN_DIR_MODIFY event

For FAN_DIR_MODIFY event, allocate a variable size event struct to store
the dir entry name along side the directory file handle.

At this point, name info reporting is not yet implemented, so trying to
set FAN_DIR_MODIFY in mark mask will return -EINVAL.

Link: https://lore.kernel.org/r/20200319151022.31456-14-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify.c
fs/notify/fanotify/fanotify.h
fs/notify/fanotify/fanotify_user.c