]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r324560: allow posix_fallocate in capability mode
authoremaste <emaste@FreeBSD.org>
Wed, 28 Mar 2018 14:39:56 +0000 (14:39 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 28 Mar 2018 14:39:56 +0000 (14:39 +0000)
commit232a0597ebf908a011544eb3ca776206859ab837
tree8b3901e4704f749224d943f3b8c68140f0b7a90c
parentf3586d9721e4e5a2a22361e86e06bb07476927c9
MFC r324560: allow posix_fallocate in capability mode

posix_fallocate is logically equivalent to writing zero blocks to the
desired file size and there is no reason to prevent calling it in
capability mode. posix_fallocate already checked for the CAP_WRITE
right, so we merely need to list it in capabilities.conf.

Also MFC r324564: allow posix_fallocate in 32-bit compat capability mode

Sponsored by: The FreeBSD Foundation
lib/libc/sys/posix_fallocate.2
sys/compat/freebsd32/capabilities.conf
sys/kern/capabilities.conf
sys/kern/vfs_syscalls.c