| 724 | } |
| 725 | |
| 726 | int |
| 727 | mac_check_structmac_consistent(struct mac *mac) |
| 728 | { |
| 729 | |
| 730 | /* Require that labels have a non-zero length. */ |
| 731 | if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN || |
| 732 | mac->m_buflen <= sizeof("")) |
| 733 | return (EINVAL); |
| 734 | |
| 735 | return (0); |
| 736 | } |
| 737 | |
| 738 | SYSINIT(mac, SI_SUB_MAC, SI_ORDER_FIRST, mac_init, NULL); |
| 739 | SYSINIT(mac_late, SI_SUB_MAC_LATE, SI_ORDER_FIRST, mac_late_init, NULL); |
no outgoing calls
no test coverage detected