aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2023-07-16 14:47:14 +0300
committerChristian Brauner <[email protected]>2023-11-24 10:37:44 +0100
commit1c8aa833034a00617866ea4738a40491e3e23902 (patch)
tree94471c01ab560aba5e832a1ebfb6c4e884be6493 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent269aed7014b3db9acdbc5a5e163d8a6c62e0e770 (diff)
fs: move permission hook out of do_iter_write()
In many of the vfs helpers, the rw_verity_area() checks are called before taking sb_start_write(), making them "start-write-safe". do_iter_write() is an exception to this rule. do_iter_write() has two callers - vfs_iter_write() and vfs_writev(). Move rw_verify_area() and other checks from do_iter_write() out to its callers to make them "start-write-safe". Move also the fsnotify_modify() hook to align with similar pattern used in vfs_write() and other vfs helpers. 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