nullfs: do not allow bypass on copy_file_range()

(cherry picked from commit 326836a1ebc6ce9b28c8f2bc1d177a444fba8ea6)
This commit is contained in:
Konstantin Belousov 2023-11-18 11:23:22 +02:00
parent c99f50351c
commit 6dec97eeaf

View file

@ -1181,5 +1181,6 @@ struct vop_vector null_vnodeops = {
.vop_vptofh = null_vptofh,
.vop_add_writecount = null_add_writecount,
.vop_vput_pair = null_vput_pair,
.vop_copy_file_range = VOP_PANIC,
};
VFS_VOP_VECTOR_REGISTER(null_vnodeops);