git: ee9bc5818356 - stable/13 - Allow posix_fadvise in capability mode
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Oct 2022 14:00:09 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=ee9bc581835682bafc4e272663296879e86bc77c commit ee9bc581835682bafc4e272663296879e86bc77c Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-04-13 22:36:03 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-10-20 13:59:35 +0000 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 72e3038ea352..5b46ee6c2839 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,