git: 6dec97eeaf14 - stable/14 - nullfs: do not allow bypass on copy_file_range()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Dec 2023 00:44:01 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6dec97eeaf146484da880d996a5bc98b4a7516d8 commit 6dec97eeaf146484da880d996a5bc98b4a7516d8 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-11-18 09:23:22 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-12-05 00:43:27 +0000 nullfs: do not allow bypass on copy_file_range() (cherry picked from commit 326836a1ebc6ce9b28c8f2bc1d177a444fba8ea6) --- sys/fs/nullfs/null_vnops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c index 7db7a352f176..5daa302bedd1 100644 --- a/sys/fs/nullfs/null_vnops.c +++ b/sys/fs/nullfs/null_vnops.c @@ -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);