Query: mac_is_present
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MAC_IS_PRESENT(3) BSD Library Functions Manual MAC_IS_PRESENT(3)NAMEmac_is_present -- report whether the running system has MAC supportLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/mac.h> int mac_is_present(const char *policyname);DESCRIPTIONThe mac_is_present() function determines whether the currently-running kernel supports MAC for a given policy or not. If policyname is non-NULL, the presence of the named policy (e.g. ``biba'', ``mls'', ``te'') is checked, otherwise the presence of any MAC policies at all is checked.RETURN VALUESIf the system supports the given MAC policy, the value 1 is returned. If the specified MAC policy is not supported, the value 0 is returned. If an error occurs, the value -1 is returned.ERRORS[EINVAL] The value of policyname is not valid. [ENOMEM] Insufficient memory was available to allocate internal storage.SEE ALSOmac(3), mac_free(3), mac_get(3), mac_prepare(3), mac_set(3), mac_text(3), mac(4), mac(9)HISTORYSupport for Mandatory Access Control was introduced in FreeBSD 5.0 as part of the TrustedBSD Project.BSDJuly 7, 2006 BSD
Related Man Pages |
---|
mac(3) - freebsd |
mac_prepare_process_label(3) - freebsd |
mac_from_text(3) - freebsd |
mac_free(3) - freebsd |
mac_set_proc(3) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Mac OSX question |
How to move a directory from thumb drive to mac? |
Checking for a valid MAC Address |
Newbie needs to find file |
Changing a MAC |