summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_process.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_process.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_process.c')
-rw-r--r--sys/security/mac/mac_process.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/security/mac/mac_process.c b/sys/security/mac/mac_process.c
index b805545..c3f8eab 100644
--- a/sys/security/mac/mac_process.c
+++ b/sys/security/mac/mac_process.c
@@ -91,14 +91,6 @@ SYSCTL_INT(_security_mac, OID_AUTO, enforce_suid, CTLFLAG_RW,
&mac_enforce_suid, 0, "Enforce MAC policy on suid/sgid operations");
TUNABLE_INT("security.mac.enforce_suid", &mac_enforce_suid);
-#ifdef MAC_DEBUG
-static unsigned int nmaccreds, nmacprocs;
-SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, creds, CTLFLAG_RD,
- &nmaccreds, 0, "number of ucreds in use");
-SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, procs, CTLFLAG_RD,
- &nmacprocs, 0, "number of procs in use");
-#endif
-
static void mac_cred_mmapped_drop_perms_recurse(struct thread *td,
struct ucred *cred, struct vm_map *map);
@@ -109,7 +101,6 @@ mac_cred_label_alloc(void)
label = mac_labelzone_alloc(M_WAITOK);
MAC_PERFORM(init_cred_label, label);
- MAC_DEBUG_COUNTER_INC(&nmaccreds);
return (label);
}
@@ -127,7 +118,6 @@ mac_proc_label_alloc(void)
label = mac_labelzone_alloc(M_WAITOK);
MAC_PERFORM(init_proc_label, label);
- MAC_DEBUG_COUNTER_INC(&nmacprocs);
return (label);
}
@@ -144,7 +134,6 @@ mac_cred_label_free(struct label *label)
MAC_PERFORM(destroy_cred_label, label);
mac_labelzone_free(label);
- MAC_DEBUG_COUNTER_DEC(&nmaccreds);
}
void
@@ -161,7 +150,6 @@ mac_proc_label_free(struct label *label)
MAC_PERFORM(destroy_proc_label, label);
mac_labelzone_free(label);
- MAC_DEBUG_COUNTER_DEC(&nmacprocs);
}
void
OpenPOWER on IntegriCloud