OSDN Git Service

fanotify: introduce new event mask FAN_OPEN_EXEC_PERM
authorMatthew Bobrowski <mbobrowski@mbobrowski.org>
Thu, 8 Nov 2018 03:12:44 +0000 (14:12 +1100)
committerJan Kara <jack@suse.cz>
Tue, 13 Nov 2018 17:41:05 +0000 (18:41 +0100)
commit66917a3130f218dcef9eeab4fd11a71cd00cd7c9
treeafe9aa84ea4a400f4e652e542caf1481c06873d5
parenta704bba5e3ec3eedddad3c2baa9b7cfa0e2b3388
fanotify: introduce new event mask FAN_OPEN_EXEC_PERM

A new event mask FAN_OPEN_EXEC_PERM has been defined. This allows users
to receive events and grant access to files that are intending to be
opened for execution. Events of FAN_OPEN_EXEC_PERM type will be
generated when a file has been opened by using either execve(),
execveat() or uselib() system calls.

This acts in the same manner as previous permission event mask, meaning
that an access response is required from the user application in order
to permit any further operations on the file.

Signed-off-by: Matthew Bobrowski <mbobrowski@mbobrowski.org>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify.c
fs/notify/fsnotify.c
include/linux/fanotify.h
include/linux/fsnotify.h
include/linux/fsnotify_backend.h
include/uapi/linux/fanotify.h