Home
last modified time | relevance | path

Searched refs:m_string (Results 1 – 6 of 6) sorted by relevance

/freebsd-9-stable/lib/libc/posix1e/
Dmac.c298 if (mac->m_string != NULL) in mac_free()
299 free(mac->m_string); in mac_free()
313 (*mac)->m_string = strdup(text); in mac_from_text()
314 if ((*mac)->m_string == NULL) { in mac_from_text()
320 (*mac)->m_buflen = strlen((*mac)->m_string)+1; in mac_from_text()
329 *text = strdup(mac->m_string); in mac_to_text()
346 (*mac)->m_string = malloc(MAC_MAX_LABEL_BUF_LEN); in mac_prepare()
347 if ((*mac)->m_string == NULL) { in mac_prepare()
353 strcpy((*mac)->m_string, elements); in mac_prepare()
/freebsd-9-stable/sys/security/mac/
Dmac_syscalls.c109 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in sys___mac_get_pid()
120 error = copyout(buffer, mac.m_string, strlen(buffer)+1); in sys___mac_get_pid()
144 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in sys___mac_get_proc()
154 error = copyout(buffer, mac.m_string, strlen(buffer)+1); in sys___mac_get_proc()
183 error = copyinstr(mac.m_string, buffer, mac.m_buflen, NULL); in sys___mac_set_proc()
244 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in sys___mac_get_fd()
309 error = copyout(buffer, mac.m_string, strlen(buffer)+1); in sys___mac_get_fd()
339 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in sys___mac_get_file()
362 error = copyout(buffer, mac.m_string, strlen(buffer)+1); in sys___mac_get_file()
392 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in sys___mac_get_link()
[all …]
Dmac_socket.c541 error = copyinstr(mac->m_string, buffer, mac->m_buflen, NULL); in mac_setsockopt_label()
574 error = copyinstr(mac->m_string, elements, mac->m_buflen, NULL); in mac_getsockopt_label()
589 error = copyout(buffer, mac->m_string, strlen(buffer)+1); in mac_getsockopt_label()
613 error = copyinstr(mac->m_string, elements, mac->m_buflen, NULL); in mac_getsockopt_peerlabel()
628 error = copyout(buffer, mac->m_string, strlen(buffer)+1); in mac_getsockopt_peerlabel()
Dmac_net.c419 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in mac_ifnet_ioctl_get()
434 error = copyout(buffer, mac.m_string, strlen(buffer)+1); in mac_ifnet_ioctl_get()
462 error = copyinstr(mac.m_string, buffer, mac.m_buflen, NULL); in mac_ifnet_ioctl_set()
Dmac_process.c159 error = copyinstr(mac.m_string, buffer, mac.m_buflen, NULL); in mac_execve_enter()
/freebsd-9-stable/sys/sys/
Dmac.h68 char *m_string; member