diff options
author | 2024-11-15 10:30:22 -0500 | |
---|---|---|
committer | 2024-12-10 12:03:17 +0100 | |
commit | 4acf3bc76e521b47acebcefc6312c97992f4ca29 (patch) | |
tree | ae148909ac181f0784eb79c68122a5867cf41269 /scripts/generate_rust_analyzer.py | |
parent | fsnotify: pass optional file access range in pre-content event (diff) | |
download | wireguard-linux-4acf3bc76e521b47acebcefc6312c97992f4ca29.tar.xz wireguard-linux-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 <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/23af8201db6ac2efdea94f09ab067d81ba5de7a7.1731684329.git.josef@toxicpanda.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions