summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_inet.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-09-20 13:33:41 +0000
committerrwatson <rwatson@FreeBSD.org>2006-09-20 13:33:41 +0000
commit5cab05d889422bcf74be149d485e3d0f181b3483 (patch)
treebde92bda6e072a1f98d3b69241e1bcebf3c98ee3 /sys/security/mac/mac_inet.c
parent6061806b7a2441113ad29326d460afa8b87659b2 (diff)
downloadFreeBSD-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.c13
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
OpenPOWER on IntegriCloud