summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mac.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-08-15 02:28:32 +0000
committerrwatson <rwatson@FreeBSD.org>2002-08-15 02:28:32 +0000
commitf77c281019425b7eea3cc478b6cd0caa6974bb37 (patch)
tree5e81b494922fb76ad7d9d18a5bebced641a20ecf /sys/kern/kern_mac.c
parent1a599018bb9a28f7a16544f11987c4d895a9a161 (diff)
downloadFreeBSD-src-f77c281019425b7eea3cc478b6cd0caa6974bb37.zip
FreeBSD-src-f77c281019425b7eea3cc478b6cd0caa6974bb37.tar.gz
Sync to trustedbsd_mac tree: default to sigsegv rather than copy-on-write
during a label change resulting in an mmap removal. This is "fail stop" behavior, which is preferred, although it offers slightly less transparency. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys/kern/kern_mac.c')
-rw-r--r--sys/kern/kern_mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_mac.c b/sys/kern/kern_mac.c
index 547647c..23c6a7c 100644
--- a/sys/kern/kern_mac.c
+++ b/sys/kern/kern_mac.c
@@ -162,7 +162,7 @@ SYSCTL_INT(_security_mac, OID_AUTO, vnode_label_cache_hits, CTLFLAG_RD,
static int mac_vnode_label_cache_misses = 0;
SYSCTL_INT(_security_mac, OID_AUTO, vnode_label_cache_misses, CTLFLAG_RD,
&mac_vnode_label_cache_misses, 0, "Cache misses on vnode labels");
-static int mac_mmap_revocation_via_cow = 1;
+static int mac_mmap_revocation_via_cow = 0;
SYSCTL_INT(_security_mac, OID_AUTO, mmap_revocation_via_cow, CTLFLAG_RW,
&mac_mmap_revocation_via_cow, 0, "Revoke mmap access to files via "
"copy-on-write semantics, or by removing all write access");
OpenPOWER on IntegriCloud