aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2024-11-15 15:30:22 +0000
committerJan Kara <[email protected]>2024-12-10 11:03:17 +0000
commit4acf3bc76e521b47acebcefc6312c97992f4ca29 (patch)
treeae148909ac181f0784eb79c68122a5867cf41269 /security/selinux/hooks.c
parentfsnotify: pass optional file access range in pre-content event (diff)
downloadkernel-4acf3bc76e521b47acebcefc6312c97992f4ca29.tar.gz
kernel-4acf3bc76e521b47acebcefc6312c97992f4ca29.zip
fsnotify: generate pre-content permission event on truncate
Generate FS_PRE_ACCESS event before truncate, without sb_writers held. Move the security hooks also before sb_start_write() to conform with other security hooks (e.g. in write, fallocate). The event will have a range info of the page surrounding the new size to provide an opportunity to fill the conetnt at the end of file before truncating to non-page aligned size. Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]> Link: https://patch.msgid.link/23af8201db6ac2efdea94f09ab067d81ba5de7a7.1731684329.git.josef@toxicpanda.com
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions