fanotify: Track permission event state
authorJan Kara <jack@suse.cz>
Tue, 8 Jan 2019 13:02:44 +0000 (14:02 +0100)
committerJan Kara <jack@suse.cz>
Mon, 18 Feb 2019 11:41:16 +0000 (12:41 +0100)
commit40873284d7106fc0f0f4d2deae74b38fb18342cc
tree5d3965765a3d031321b026e576db2593242b77e0
parentca6f86998d810d4a9fe172bf4cb6d3353636881f
fanotify: Track permission event state

Track whether permission event got already reported to userspace and
whether userspace already answered to the permission event. Protect
stores to this field together with updates to ->response field by
group->notification_lock. This will allow aborting wait for reply to
permission event from userspace.

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