]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify: fix ignore mask logic in fsnotify()
authorAmir Goldstein <amir73il@gmail.com>
Sat, 1 Sep 2018 06:40:01 +0000 (09:40 +0300)
committerJan Kara <jack@suse.cz>
Mon, 3 Sep 2018 12:57:41 +0000 (14:57 +0200)
commit6a04b11179f3f33e5b99251af90d5f8367a994e5
tree6a398221129f73a256d4257fa32a6702542f9b4a
parentef986b441d843a813542c4091bb29cf3bfe2dfb3
fsnotify: fix ignore mask logic in fsnotify()

Commit bb0940dde37c ("fsnotify: fix ignore mask logic in
send_to_group()") acknoledges the use case of ignoring an event on
an inode mark, because of an ignore mask on a mount mark of the same
group (i.e. I want to get all events on this file, except for the events
that came from that mount).

This change depends on correctly merging the inode marks and mount marks
group lists, so that the mount mark ignore mask would be tested in
send_to_group(). Alas, the merging of the lists did not take into
account the case where event in question is not in the mask of any of
the mount marks.

To fix this, completely remove the tests for inode and mount event masks
from the lists merging code.

Fixes: bb0940dde37c ("fsnotify: fix ignore mask logic in send_to_group")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.c