Lines Matching refs:mac
116 #include <security/mac.h>
557 struct user_mac mac;
568 error = copyin(uap->mac_p, &mac, sizeof(mac));
570 struct mac mac32;
572 mac.m_buflen = mac32.m_buflen;
573 mac.m_string = CAST_USER_ADDR_T(mac32.m_string);
577 if ((mac.m_buflen > MAC_MAX_LABEL_BUF_LEN) ||
578 (mac.m_buflen < 2)) {
582 MALLOC(labelstr, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
583 error = copyinstr(mac.m_string, labelstr, mac.m_buflen, &ulen);
1641 muap.mac = USER_ADDR_NULL;
1668 if (uap->mac != USER_ADDR_NULL) {
1679 error = copyin(uap->mac, mp0, uap->macsize);