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_inet.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_inet.c')
-rw-r--r-- | sys/security/mac/mac_inet.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/security/mac/mac_inet.c b/sys/security/mac/mac_inet.c index 775ce39..7dafc45 100644 --- a/sys/security/mac/mac_inet.c +++ b/sys/security/mac/mac_inet.c @@ -66,15 +66,6 @@ __FBSDID("$FreeBSD$"); #include <security/mac/mac_internal.h> -#ifdef MAC_DEBUG -static unsigned int nmacinpcbs, nmacipqs; - -SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, inpcbs, CTLFLAG_RD, - &nmacinpcbs, 0, "number of inpcbs in use"); -SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, ipqs, CTLFLAG_RD, - &nmacipqs, 0, "number of ipqs in use"); -#endif - static struct label * mac_inpcb_label_alloc(int flag) { @@ -90,7 +81,6 @@ mac_inpcb_label_alloc(int flag) mac_labelzone_free(label); return (NULL); } - MAC_DEBUG_COUNTER_INC(&nmacinpcbs); return (label); } @@ -120,7 +110,6 @@ mac_ipq_label_alloc(int flag) mac_labelzone_free(label); return (NULL); } - MAC_DEBUG_COUNTER_INC(&nmacipqs); return (label); } @@ -140,7 +129,6 @@ mac_inpcb_label_free(struct label *label) MAC_PERFORM(destroy_inpcb_label, label); mac_labelzone_free(label); - MAC_DEBUG_COUNTER_DEC(&nmacinpcbs); } void @@ -157,7 +145,6 @@ mac_ipq_label_free(struct label *label) MAC_PERFORM(destroy_ipq_label, label); mac_labelzone_free(label); - MAC_DEBUG_COUNTER_DEC(&nmacipqs); } void |