]> Git Repo - linux.git/commit
fsnotify: fix ignore mask logic in send_to_group()
authorAmir Goldstein <[email protected]>
Thu, 5 Apr 2018 13:18:03 +0000 (16:18 +0300)
committerJan Kara <[email protected]>
Fri, 13 Apr 2018 13:52:49 +0000 (15:52 +0200)
commit92183a42898dc400b89da35685d1814ac6acd3d8
treecaad53c6a808a571a2d794c810896d505ed8c66c
parent5ac7c2fd6e7102532104907c0df94abca826ec5c
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 <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
fs/notify/fsnotify.c
This page took 0.056044 seconds and 4 git commands to generate.