Changeset View
Changeset View
Standalone View
Standalone View
sys/security/mac/mac_framework.c
Show First 20 Lines • Show All 732 Lines • ▼ Show 20 Lines | mac_check_structmac_consistent(struct mac *mac) | ||||
/* Require that labels have a non-zero length. */ | /* Require that labels have a non-zero length. */ | ||||
if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN || | if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN || | ||||
mac->m_buflen <= sizeof("")) | mac->m_buflen <= sizeof("")) | ||||
return (EINVAL); | return (EINVAL); | ||||
return (0); | return (0); | ||||
} | } | ||||
SYSINIT(mac, SI_SUB_MAC, SI_ORDER_FIRST, mac_init, NULL); | SYSINIT(mac, SI_SUB_MAC, SI_ORDER_FIRST, mac_init); | ||||
SYSINIT(mac_late, SI_SUB_MAC_LATE, SI_ORDER_FIRST, mac_late_init, NULL); | SYSINIT(mac_late, SI_SUB_MAC_LATE, SI_ORDER_FIRST, mac_late_init); |