mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 08:25:22 -04:00
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 52a1d90c8b)
This commit is contained in:
parent
baa9701312
commit
ee9bc58183
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue