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

  man pages->FreeBSD man pages -> mac_free (3)              



NAME    [Toc]    [Back]

     mac_free -- free MAC label

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <sys/mac.h>

     mac_free(mac_t label);

DESCRIPTION    [Toc]    [Back]

     The mac_free() function frees the storage allocated to contain a mac_t.

RETURN VALUES    [Toc]    [Back]

     The mac_free() function always returns 0.	WARNING: see the notes in the
     BUGS section regarding the use of this function.

SEE ALSO    [Toc]    [Back]

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

STANDARDS    [Toc]    [Back]

     POSIX.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

HISTORY    [Toc]    [Back]

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

BUGS    [Toc]    [Back]

     POSIX.1e specifies that mac_free() will be used to free text strings created
 using mac_to_text(3).  Because mac_t is a complex structure in the
     TrustedBSD implementation, mac_free() is specific to that type, and must
     not be used to free the character strings returned from mac_to_text().
     Doing so may result in undefined behavior, including application failure.

FreeBSD 5.2.1		       December 21, 2001		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
tsix_get_solabel IRIX get the MAC label of a socket
newlabel IRIX run a process at another label
VkMenuLabel IRIX A label that can appear in a menu
mac_get_file IRIX get or set the MAC label for a pathname
mac_get_proc IRIX get or set the MAC label of this process
mac_is_moldy IRIX get the moldiness of a MAC label
mac_set_moldy IRIX set the moldiness of a MAC label
setlabel IRIX define the label for pfmt and lfmt.
tsix_set_solabel IRIX set the MAC label of a socket
XmLabel Tru64 The Label widget class
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service