Lines Matching refs:buffer
1185 /* allocate a scratch buffer the size of the string */
1192 /* copy the elementlist to the scratch buffer */
1197 * scratch buffer without losing the allocation address
1203 /* could not allocate interior buffer */
1207 /* iterate the scratch buffer; NOTE: buffer contents modified! */
1303 char *elements, *buffer;
1344 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
1346 buffer, mac.m_buflen, M_WAITOK);
1348 error = copyout(buffer, mac.m_string, strlen(buffer)+1);
1350 FREE(buffer, M_MACTEMP);
1359 char *elements, *buffer;
1393 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
1395 elements, buffer, mac.m_buflen, M_WAITOK);
1397 error = copyout(buffer, mac.m_string, strlen(buffer)+1);
1399 FREE(buffer, M_MACTEMP);
1411 char *buffer;
1433 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
1434 error = copyinstr(mac.m_string, buffer, mac.m_buflen, &ulen);
1436 FREE(buffer, M_MACTEMP);
1439 AUDIT_ARG(mac_string, buffer);
1442 error = mac_cred_label_internalize(intlabel, buffer);
1443 FREE(buffer, M_MACTEMP);
1484 * uap->mac_p.m_buflen MAC info buffer size
1493 char *elements, *buffer;
1531 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
1533 buffer, mac.m_buflen);
1535 error = copyout(buffer, mac.m_string, strlen(buffer)+1);
1538 FREE(buffer, M_MACTEMP);
1562 char *elements, *buffer;
1593 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
1603 elements, buffer, mac.m_buflen);
1606 error = copyout(buffer, mac.m_string, strlen(buffer)+1);
1609 FREE(buffer, M_MACTEMP);
1619 char *buffer;
1641 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
1642 error = copyinstr(mac.m_string, buffer, mac.m_buflen, &ulen);
1644 FREE(buffer, M_MACTEMP);
1647 AUDIT_ARG(mac_string, buffer);
1650 error = mac_lctx_label_internalize(intlabel, buffer);
1651 FREE(buffer, M_MACTEMP);
1704 char *elements, *buffer;
1742 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
1745 FREE(buffer, M_MACTEMP);
1755 FREE(buffer, M_MACTEMP);
1772 elements, buffer,
1785 error = mac_socket_label_externalize(intlabel, elements, buffer, mac.m_buflen);
1801 error = copyout(buffer, mac.m_string, strlen(buffer)+1);
1803 FREE(buffer, M_MACTEMP);
1813 char *elements, *buffer;
1840 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
1844 FREE(buffer, M_MACTEMP);
1857 FREE(buffer, M_MACTEMP);
1867 error = mac_vnode_label_externalize(intlabel, elements, buffer,
1871 error = copyout(buffer, mac.m_string, strlen(buffer) + 1);
1875 FREE(buffer, M_MACTEMP);
1906 char *buffer;
1933 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
1934 error = copyinstr(mac.m_string, buffer, mac.m_buflen, &ulen);
1936 FREE(buffer, M_MACTEMP);
1939 AUDIT_ARG(mac_string, buffer);
1943 FREE(buffer, M_MACTEMP);
1948 error = mac_file_check_set(vfs_context_ucred(ctx), fp->f_fglob, buffer, mac.m_buflen);
1951 FREE(buffer, M_MACTEMP);
1965 error = mac_vnode_label_internalize(intlabel, buffer);
1985 error = mac_socket_label_internalize(intlabel, buffer);
2006 FREE(buffer, M_MACTEMP);
2019 char *buffer;
2046 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
2047 error = copyinstr(mac.m_string, buffer, mac.m_buflen, &ulen);
2049 FREE(buffer, M_MACTEMP);
2052 AUDIT_ARG(mac_string, buffer);
2055 error = mac_vnode_label_internalize(intlabel, buffer);
2056 FREE(buffer, M_MACTEMP);
2164 char *elements, *buffer;
2197 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
2198 error = mac_mount_label_externalize(label, elements, buffer,
2203 error = copyout(buffer, mac.m_string, strlen(buffer) + 1);
2204 FREE(buffer, M_MACTEMP);