mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
nullfs: do not allow bypass on copy_file_range()
There must be no callers of VOP_COPY_FILE_RANGE() except vn_copy_file_range(), which does enough to find the write-vnodes where to call the VOP. Reviewed by: markj, Olivier Certner <olce.freebsd@certner.fr> Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42603
This commit is contained in:
parent
c5405d1c85
commit
326836a1eb
|
@ -1177,5 +1177,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);
|
||||
|
|
Loading…
Reference in a new issue