diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-09-20 13:33:41 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-09-20 13:33:41 +0000 |
commit | 5cab05d889422bcf74be149d485e3d0f181b3483 (patch) | |
tree | bde92bda6e072a1f98d3b69241e1bcebf3c98ee3 /sys/security/mac/mac_sysv_sem.c | |
parent | 6061806b7a2441113ad29326d460afa8b87659b2 (diff) | |
download | FreeBSD-src-5cab05d889422bcf74be149d485e3d0f181b3483.zip FreeBSD-src-5cab05d889422bcf74be149d485e3d0f181b3483.tar.gz |
Remove MAC_DEBUG label counters, which were used to debug leaks and
other problems while labels were first being added to various kernel
objects. They have outlived their usefulness.
MFC after: 1 month
Suggested by: Christopher dot Vance at SPARTA dot com
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/mac/mac_sysv_sem.c')
-rw-r--r-- | sys/security/mac/mac_sysv_sem.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/security/mac/mac_sysv_sem.c b/sys/security/mac/mac_sysv_sem.c index 76be276..ffe31e1 100644 --- a/sys/security/mac/mac_sysv_sem.c +++ b/sys/security/mac/mac_sysv_sem.c @@ -58,12 +58,6 @@ SYSCTL_INT(_security_mac, OID_AUTO, enforce_sysv_sem, CTLFLAG_RW, &mac_enforce_sysv_sem, 0, "Enforce MAC policy on System V IPC Semaphores"); TUNABLE_INT("security.mac.enforce_sysv", &mac_enforce_sysv_sem); -#ifdef MAC_DEBUG -static unsigned int nmacipcsemas; -SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, ipc_semas, CTLFLAG_RD, - &nmacipcsemas, 0, "number of sysv ipc semaphore identifiers inuse"); -#endif - static struct label * mac_sysv_sem_label_alloc(void) { @@ -71,7 +65,6 @@ mac_sysv_sem_label_alloc(void) label = mac_labelzone_alloc(M_WAITOK); MAC_PERFORM(init_sysv_sem_label, label); - MAC_DEBUG_COUNTER_INC(&nmacipcsemas); return (label); } @@ -88,7 +81,6 @@ mac_sysv_sem_label_free(struct label *label) MAC_PERFORM(destroy_sysv_sem_label, label); mac_labelzone_free(label); - MAC_DEBUG_COUNTER_DEC(&nmacipcsemas); } void |