]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
copy_file_range: require CAP_SEEK capability
authorMariusz Zaborski <oshogbo@FreeBSD.org>
Thu, 28 Sep 2023 13:24:39 +0000 (15:24 +0200)
committerMariusz Zaborski <oshogbo@FreeBSD.org>
Thu, 28 Sep 2023 13:48:07 +0000 (15:48 +0200)
commit15a51d3abaef27ddea66320cac7caa549738a1a6
tree0579a958616b1e04d5df277a66a5281d56e82290
parent64c6327738fc24bb34b9f40ff1c223ab460ef637
copy_file_range: require CAP_SEEK capability

When using copy_file_range(2) with an offset parameter,
the CAP_SEEK capability should be required.
This requirement is similar to the behavior observed with
pread(2)/pwrite(2).

Reported by: theraven
Reviewed by:    emaste, theraven, kib, markj
Approved by: secteam
Differential Revision:  https://reviews.freebsd.org/D41967
sys/kern/vfs_syscalls.c