HomeFreeBSD

Add PROC_TRAPCAP procctl(2) controls and global sysctl kern.trap_enocap.

Description

Add PROC_TRAPCAP procctl(2) controls and global sysctl kern.trap_enocap.

Both can be used to cause processes in capability mode to receive
SIGTRAP when ENOTCAPABLE or ECAPMODE errors are returned from
syscalls.

Idea by: emaste
Reviewed by: oshogbo (previous version), emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D7965

Details

Provenance
kibAuthored on
Reviewer
oshogbo
Differential Revision
D7965: Deliver SIGTRAP when ENOTCAPABLE error is returned from a syscall for the process in capability mode.
Parents
rS306080: MFC r305939:
Branches
Unknown
Tags
Unknown