|
NAMEmac_get_file , mac_get_link ,
mac_get_fd , mac_get_peer ,
mac_get_pid , mac_get_proc
—
get the label of a file, socket, socket peer or process
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/mac.h>
int
int
int
int
int
int
DESCRIPTIONThemac_get_file () system call returns the label
associated with a file specified by pathname. The
mac_get_link () function is the same as
mac_get_file (), except that it does not follow
symlinks.
The The Label storage for use with these calls must first be allocated and prepared using the mac_prepare(3) functions. When an application is done using a label, the memory may be returned using mac_free(3). ERRORS
SEE ALSOmac(3), mac_free(3), mac_prepare(3), mac_set(3), mac_text(3), posix1e(3), mac(4), mac(9)STANDARDSPOSIX.1e is described in IEEE POSIX.1e draft 17. Discussion of the draft continues on the cross-platform POSIX.1e implementation mailing list. To join this list, see the FreeBSD POSIX.1e implementation page for more information.HISTORYSupport for Mandatory Access Control was introduced in FreeBSD 5.0 as part of the TrustedBSD Project.
Visit the GSP FreeBSD Man Page Interface. |