*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> mac_is_present_np (3)              
Title
Content
Arch
Section
 

MAC_IS_PRESENT_NP(3)

Contents


NAME    [Toc]    [Back]

     mac_is_present_np -- report whether the running system has MAC support

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <sys/mac.h>

     int
     mac_is_present(const char *policyname);

DESCRIPTION    [Toc]    [Back]

     The mac_is_present_np() 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 VALUES    [Toc]    [Back]

     If 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    [Toc]    [Back]

     [EINVAL]		The value of policyname is not valid.

     [ENOMEM]		Insufficient memory was available to allocate internal
			storage.

SEE ALSO    [Toc]    [Back]

      
      
     mac(3), mac_free(3), mac_get(3), mac_prepare(3), mac_set(3), mac_text(3),
     mac(4), mac(9)

HISTORY    [Toc]    [Back]

     Support for Mandatory Access Control was introduced in FreeBSD 5.0 as
     part of the TrustedBSD Project.


FreeBSD 5.2.1			January 9, 2002 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
cvsbug Linux send problem report (PR) about CVS to a central support site
sendbug FreeBSD send problem report (PR) to a central support site
send-pr FreeBSD send problem report (PR) to a central support site
cvsbug OpenBSD send problem report (PR) about CVS to a central support site
cvsbug FreeBSD send problem report (PR) about CVS to a central support site
cvsbug NetBSD send problem report (PR) about CVS to a central support site
uptime Linux Tell how long the system has been running.
uptime Tru64 Shows how long a system has been running
uptime OpenBSD show how long system has been running
uptime FreeBSD show how long system has been running
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service