fanotify: prepare for implicit event flags in mark mask
authorAmir Goldstein <amir73il@gmail.com>
Thu, 16 Jul 2020 08:42:14 +0000 (11:42 +0300)
committerJan Kara <jack@suse.cz>
Mon, 27 Jul 2020 19:23:36 +0000 (21:23 +0200)
commit4ed6814a91cc71202e3de12cd1cb7cc59f3cee57
tree2ff6d2f1ff8cd686e4432024b0de0ab8dca57403
parent3ef866536645ce1b4f0516e8723d803d0fa6ca26
fanotify: prepare for implicit event flags in mark mask

So far, all flags that can be set in an fanotify mark mask can be set
explicitly by a call to fanotify_mark(2).

Prepare for defining implicit event flags that cannot be set by user with
fanotify_mark(2), similar to how inotify/dnotify implicitly set the
FS_EVENT_ON_CHILD flag.

Implicit event flags cannot be removed by user and mark gets destroyed
when only implicit event flags remain in the mask.

Link: https://lore.kernel.org/r/20200716084230.30611-7-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c