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_socket.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_socket.c')
-rw-r--r-- | sys/security/mac/mac_socket.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/security/mac/mac_socket.c b/sys/security/mac/mac_socket.c index 7af1749..21439cd 100644 --- a/sys/security/mac/mac_socket.c +++ b/sys/security/mac/mac_socket.c @@ -80,13 +80,6 @@ SYSCTL_INT(_security_mac, OID_AUTO, enforce_socket, CTLFLAG_RW, &mac_enforce_socket, 0, "Enforce MAC policy on socket operations"); TUNABLE_INT("security.mac.enforce_socket", &mac_enforce_socket); -#ifdef MAC_DEBUG -static unsigned int nmacsockets; - -SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, sockets, CTLFLAG_RD, - &nmacsockets, 0, "number of sockets in use"); -#endif - struct label * mac_socket_label_alloc(int flag) { @@ -103,7 +96,6 @@ mac_socket_label_alloc(int flag) mac_labelzone_free(label); return (NULL); } - MAC_DEBUG_COUNTER_INC(&nmacsockets); return (label); } @@ -123,7 +115,6 @@ mac_socket_peer_label_alloc(int flag) mac_labelzone_free(label); return (NULL); } - MAC_DEBUG_COUNTER_INC(&nmacsockets); return (label); } @@ -149,7 +140,6 @@ mac_socket_label_free(struct label *label) MAC_PERFORM(destroy_socket_label, label); mac_labelzone_free(label); - MAC_DEBUG_COUNTER_DEC(&nmacsockets); } static void @@ -158,7 +148,6 @@ mac_socket_peer_label_free(struct label *label) MAC_PERFORM(destroy_socket_peer_label, label); mac_labelzone_free(label); - MAC_DEBUG_COUNTER_DEC(&nmacsockets); } void |