summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_pipe.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_pipe.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_pipe.c')
-rw-r--r--sys/security/mac/mac_pipe.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/security/mac/mac_pipe.c b/sys/security/mac/mac_pipe.c
index 16de842..6a59567 100644
--- a/sys/security/mac/mac_pipe.c
+++ b/sys/security/mac/mac_pipe.c
@@ -56,12 +56,6 @@ SYSCTL_INT(_security_mac, OID_AUTO, enforce_pipe, CTLFLAG_RW,
&mac_enforce_pipe, 0, "Enforce MAC policy on pipe operations");
TUNABLE_INT("security.mac.enforce_pipe", &mac_enforce_pipe);
-#ifdef MAC_DEBUG
-static unsigned int nmacpipes;
-SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, pipes, CTLFLAG_RD,
- &nmacpipes, 0, "number of pipes in use");
-#endif
-
struct label *
mac_pipe_label_alloc(void)
{
@@ -69,7 +63,6 @@ mac_pipe_label_alloc(void)
label = mac_labelzone_alloc(M_WAITOK);
MAC_PERFORM(init_pipe_label, label);
- MAC_DEBUG_COUNTER_INC(&nmacpipes);
return (label);
}
@@ -86,7 +79,6 @@ mac_pipe_label_free(struct label *label)
MAC_PERFORM(destroy_pipe_label, label);
mac_labelzone_free(label);
- MAC_DEBUG_COUNTER_DEC(&nmacpipes);
}
void
OpenPOWER on IntegriCloud