-
Notifications
You must be signed in to change notification settings - Fork 998
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscalls/fanotify10: Add test cases for merge with ignored mask on di…
…rectory Pre kernel v5.9, a child mark with ignored mask would not prevent the delivery of events to a watching parent of that child. This was fixed by kernel commit eca4784cbb18 ("fsnotify: send event to parent and child with single callback"). We add test cases for combination of mark of a directory with ignored mask either watching children or not. Verified that existing test cases still fail on old kernels without the relevant fix commits. In current kernel, there is a limitation that requires setting the event also in the parent's mask for ignore mask to be correctly merged with other marks. This is a temporary workaround that could be removed in the future when the correct behavior could be tested. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Petr Vorel <pvorel@suse.cz>
- Loading branch information
Showing
1 changed file
with
99 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters