History

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.

Matthew Bobrowski committed 8 years ago

Commit 66917a31 parent a704bba6 files · +23 −11Browse files

Showing the changes to include/uapi/linux (1 of 6 files). Show all

Unified · Split

include/uapi/linux/fanotify.h+1−0
@@ -16,6 +16,7 @@ · 15 unmodified lines
16 16
17#define FAN_OPEN_PERM 0x00010000 /* File open in perm check */17#define FAN_OPEN_PERM 0x00010000 /* File open in perm check */
18#define FAN_ACCESS_PERM 0x00020000 /* File accessed in perm check */18#define FAN_ACCESS_PERM 0x00020000 /* File accessed in perm check */
19#define FAN_OPEN_EXEC_PERM 0x00040000 /* File open/exec in perm check */
19 20
20#define FAN_ONDIR 0x40000000 /* event occurred against dir */21#define FAN_ONDIR 0x40000000 /* event occurred against dir */
21 22