diff options
author | Amir Goldstein <[email protected]> | 2023-07-16 14:47:14 +0300 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2023-11-24 10:37:44 +0100 |
commit | b8e1425bae856b189e2365ff795e30fdd9e77049 (patch) | |
tree | 3f055c84560b8c44d460595993bd5b875c88d92b /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 1c8aa833034a00617866ea4738a40491e3e23902 (diff) |
fs: move permission hook out of do_iter_read()
We recently moved fsnotify hook, rw_verify_area() and other checks from
do_iter_write() out to its two callers.
for consistency, do the same thing for do_iter_read() - move the
rw_verify_area() checks and fsnotify hook to the callers vfs_iter_read()
and vfs_readv().
This aligns those vfs helpers with the pattern used in vfs_read() and
vfs_iocb_iter_read() and the vfs write helpers, where all the checks are
in the vfs helpers and the do_* or call_* helpers do the work.
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]
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Amir Goldstein <[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