linux/fs/notify/fanotify
Amir Goldstein 0321e03cb4 fanotify: check FS_ISDIR flag instead of d_is_dir()
All fsnotify hooks set the FS_ISDIR flag for events that happen
on directory victim inodes except for fsnotify_perm().

Add the missing FS_ISDIR flag in fsnotify_perm() hook and let
fanotify_group_event_mask() check the FS_ISDIR flag instead of
checking if path argument is a directory.

This is needed for fanotify support for event types that do not
carry path information.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2019-02-07 16:38:36 +01:00
..
fanotify_user.c fanotify: use vfs_get_fsid() helper instead of vfs_statfs() 2019-02-07 16:38:35 +01:00
fanotify.c fanotify: check FS_ISDIR flag instead of d_is_dir() 2019-02-07 16:38:36 +01:00
fanotify.h fanotify: cache fsid in fsnotify_mark_connector 2019-02-07 16:38:35 +01:00
Kconfig treewide: Fix typos in Kconfig 2017-10-12 15:42:00 +02:00
Makefile fanotify: fanotify_init syscall declaration 2010-07-28 09:58:55 -04:00