svn commit: r324560 - in head: lib/libc/sys sys/kern
Konstantin Belousov
kostikbel at gmail.com
Thu Oct 12 18:11:14 UTC 2017
On Thu, Oct 12, 2017 at 03:45:53PM +0000, Ed Maste wrote:
> Author: emaste
> Date: Thu Oct 12 15:45:53 2017
> New Revision: 324560
> URL: https://svnweb.freebsd.org/changeset/base/324560
>
> Log:
> 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.
>
> Reviewed by: allanjude
> MFC after: 2 weeks
> Sponsored by: The FreeBSD Foundation
> Differential Revision: https://reviews.freebsd.org/D12640
>
> Modified:
> head/lib/libc/sys/posix_fallocate.2
> head/sys/kern/capabilities.conf
You should also update compat/freebsd32.
> head/sys/kern/vfs_syscalls.c
More information about the svn-src-head
mailing list