From ee9bc581835682bafc4e272663296879e86bc77c Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 13 Apr 2022 18:36:03 -0400 Subject: [PATCH] Allow posix_fadvise in capability mode posix_fadvise operates only on a provided fd. Noted by Mathieu 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 72e3038ea35..5b46ee6c283 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -2927,7 +2927,7 @@ off_t len ); } -531 AUE_POSIX_FADVISE STD { +531 AUE_POSIX_FADVISE STD|CAPENABLED { int posix_fadvise( int fd, off_t offset, -- 2.45.0