]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow posix_fadvise in capability mode
authorEd Maste <emaste@FreeBSD.org>
Wed, 13 Apr 2022 22:36:03 +0000 (18:36 -0400)
committerEd Maste <emaste@FreeBSD.org>
Thu, 20 Oct 2022 13:59:35 +0000 (09:59 -0400)
commitee9bc581835682bafc4e272663296879e86bc77c
treeef466fed83456776ed9ec146fa93b29a824390f3
parentbaa97013121a915057ee54dfcb2cb87e541f7d7f
Allow posix_fadvise in capability mode

posix_fadvise operates only on a provided fd.  Noted by
Mathieu <sigsys@gmail.com> in review D34761.

No new CAP_ rights are added for posix_fadvise(), as 'advice' in
general only influences when I/O happens; the fd must have existing
CAP_ rights for actual data access.

Reviewed by: markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34903

(cherry picked from commit 52a1d90c8bfe80a15e71a1a2bd7b9407949741d6)
sys/kern/syscalls.master