summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_sysv_shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/security/mac/mac_sysv_shm.c')
-rw-r--r--sys/security/mac/mac_sysv_shm.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/security/mac/mac_sysv_shm.c b/sys/security/mac/mac_sysv_shm.c
index 175774f..adbea14 100644
--- a/sys/security/mac/mac_sysv_shm.c
+++ b/sys/security/mac/mac_sysv_shm.c
@@ -59,12 +59,6 @@ SYSCTL_INT(_security_mac, OID_AUTO, enforce_sysv_shm, CTLFLAG_RW,
"Enforce MAC policy on System V IPC shared memory");
TUNABLE_INT("security.mac.enforce_sysv", &mac_enforce_sysv_shm);
-#ifdef MAC_DEBUG
-static unsigned int nmacipcshms;
-SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, ipc_shms, CTLFLAG_RD,
- &nmacipcshms, 0, "number of sysv ipc shm identifiers inuse");
-#endif
-
static struct label *
mac_sysv_shm_label_alloc(void)
{
@@ -72,7 +66,6 @@ mac_sysv_shm_label_alloc(void)
label = mac_labelzone_alloc(M_WAITOK);
MAC_PERFORM(init_sysv_shm_label, label);
- MAC_DEBUG_COUNTER_INC(&nmacipcshms);
return (label);
}
@@ -89,7 +82,6 @@ mac_sysv_shm_label_free(struct label *label)
MAC_PERFORM(destroy_sysv_shm_label, label);
mac_labelzone_free(label);
- MAC_DEBUG_COUNTER_DEC(&nmacipcshms);
}
void
OpenPOWER on IntegriCloud