]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75bc6eab6e5493fa4de01549536c59e8821bc874
treeafe9aa84ea4a400f4e652e542caf1481c06873d5
parentc3a2aee6efe6d00255a778650299a3e98b502700
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