aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2024-11-15 15:30:23 +0000
committerJan Kara <[email protected]>2024-12-10 11:03:17 +0000
commit4f8afa33817a6420398d1c177c6e220a05081f51 (patch)
tree520a26fbfb7eb32e99d69abadc5d6fe3a2a3020d /security/selinux/hooks.c
parentfsnotify: generate pre-content permission event on truncate (diff)
downloadkernel-4f8afa33817a6420398d1c177c6e220a05081f51.tar.gz
kernel-4f8afa33817a6420398d1c177c6e220a05081f51.zip
fanotify: introduce FAN_PRE_ACCESS permission event
Similar to FAN_ACCESS_PERM permission event, but it is only allowed with class FAN_CLASS_PRE_CONTENT and only allowed on regular files and dirs. Unlike FAN_ACCESS_PERM, it is safe to write to the file being accessed in the context of the event handler. This pre-content event is meant to be used by hierarchical storage managers that want to fill the content of files on first read access. Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]> Link: https://patch.msgid.link/b80986f8d5b860acea2c9a73c0acd93587be5fe4.1731684329.git.josef@toxicpanda.com
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions