]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify: fix ignore mask logic in send_to_group()
authorAmir Goldstein <amir73il@gmail.com>
Thu, 5 Apr 2018 13:18:03 +0000 (16:18 +0300)
committerJan Kara <jack@suse.cz>
Fri, 13 Apr 2018 13:52:49 +0000 (15:52 +0200)
commitbb0940dde37cd64c12a587467d144cedce52517d
treecaad53c6a808a571a2d794c810896d505ed8c66c
parente9f74d314e7d92eb4bbb650a560196d382027359
fsnotify: fix ignore mask logic in send_to_group()

The ignore mask logic in send_to_group() does not match the logic
in fanotify_should_send_event(). In the latter, a vfsmount mark ignore
mask precedes an inode mark mask and in the former, it does not.

That difference may cause events to be sent to fanotify backend for no
reason. Fix the logic in send_to_group() to match that of
fanotify_should_send_event().

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.c