Let kern.trap_enotcap be set as a tunable.

This is handy for testing programs that are run by rc.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
markj 2018-12-06 17:29:37 +00:00
parent 6f2e8748d7
commit 29acbc71ce

View File

@ -86,7 +86,7 @@ __FBSDID("$FreeBSD$");
#include <vm/vm.h> #include <vm/vm.h>
bool __read_frequently trap_enotcap; bool __read_frequently trap_enotcap;
SYSCTL_BOOL(_kern, OID_AUTO, trap_enotcap, CTLFLAG_RW, &trap_enotcap, 0, SYSCTL_BOOL(_kern, OID_AUTO, trap_enotcap, CTLFLAG_RWTUN, &trap_enotcap, 0,
"Deliver SIGTRAP on ENOTCAPABLE"); "Deliver SIGTRAP on ENOTCAPABLE");
#ifdef CAPABILITY_MODE #ifdef CAPABILITY_MODE