diff options
author | Amir Goldstein <[email protected]> | 2023-11-23 18:51:44 +0100 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2023-11-24 09:22:28 +0100 |
commit | d53471ba6f7ae97a4e223539029528108b705af1 (patch) | |
tree | 60635c7a772a2c32e5cbb1d4a0fe1e22821e50bc /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | b70d8e2b8ce56c79d9d18d20955e6de1631e9509 (diff) |
splice: remove permission hook from iter_file_splice_write()
All the callers of ->splice_write(), (e.g. do_splice_direct() and
do_splice()) already check rw_verify_area() for the entire range
and perform all the other checks that are in vfs_write_iter().
Instead of creating another tiny helper for special caller, just
open-code it.
This is needed for fanotify "pre content" events.
Suggested-by: Jan Kara <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Amir Goldstein <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions