HomeFreeBSD

disallow open(2) in capability mode

Description

disallow open(2) in capability mode

Previously open(2) was allowed in capability mode, with a comment that
suggested this was likely the case to facilitate debugging. The system
call would still fail later on, but it's better to disallow the syscall
altogether.

We now have the kern.trap_enotcap sysctl or PROC_TRAPCAP_CTL proccontrol
to aid in debugging.

In any case libc has translated open() to the openat syscall since
r277032.

Reviewed by: kib, rwatson
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10850

Details

Provenance
emasteAuthored on
Reviewer
kib
Differential Revision
D10850: disallow open(2) in capability mode
Parents
rS318633: bsdinstall: do not use distextract in scripted mode
Branches
Unknown
Tags
Unknown