void *
mac_mbuf_alloc(int len, int wait)
{
+#if CONFIG_MACF_SOCKET_SUBSET
struct m_tag *t;
t = m_tag_alloc(KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_MAC_POLICY_LABEL,
return (NULL);
return ((void *)(t + 1));
+#else
+#pragma unused(len, wait)
+ return NULL;
+#endif
}
void
mac_mbuf_free(void *data)
{
+#if CONFIG_MACF_SOCKET_SUBSET
struct m_tag *t;
t = (struct m_tag *)((char *)data - sizeof(struct m_tag));
m_tag_free(t);
+#else
+#pragma unused(data)
+#endif
}
/*