Author: markj
Date: Thu Dec 6 17:29:37 2018
New Revision: 341638
URL: https://svnweb.freebsd.org/changeset/base/341638
Log:
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
Modified:
head/sys/kern/sys_capability.c
Modified: head/sys/kern/sys_capability.c
==============================================================================
--- head/sys/kern/sys_capability.c Thu Dec 6 16:10:39 2018
(r341637)
+++ head/sys/kern/sys_capability.c Thu Dec 6 17:29:37 2018
(r341638)
@@ -86,7 +86,7 @@ __FBSDID("$FreeBSD$");
#include <vm/vm.h>
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");
#ifdef CAPABILITY_MODE
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"