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

  man pages->IRIX man pages -> mac_get_proc (3c)              
Title
Content
Arch
Section
 

Contents


MAC_GET_PROC(3C)					      MAC_GET_PROC(3C)


NAME    [Toc]    [Back]

     mac_get_proc, mac_set_proc	 - get or set the MAC label of this process

SYNOPSIS    [Toc]    [Back]

     #include <sys/mac.h>

     mac_t mac_get_proc(void);
     int mac_set_proc(mac_t macp);

DESCRIPTION    [Toc]    [Back]

     mac_get_proc returns a mac_t, a pointer to	an allocated struct mac_label
     which is the MAC label for	this process.

     mac_set_proc sets the MAC label of	the process.  The MAC label is first
     checked for validity by mac_valid(3c).  The process must have
     CAP_MAC_RELABEL_SUBJ capability in	its effective set to change its	MAC
     label.

RETURN VALUES    [Toc]    [Back]

     mac_get_proc a mac_t if successful, NULL otherwise.  The storage should
     be	freed with a call to mac_free with the returned	pointer	as an argument
     when it is	no longer needed.

     mac_set_proc returns 0 if successful, -1 otherwise.

ERRORS    [Toc]    [Back]

     mac_get_proc:

     ENOMEM	     allocation	of the mac_t failed.

     ENOSYS	     MAC support is not	available (not installed).

     mac_set_proc:

     EINVAL	     macp points to an invalid MAC label.

     ENOSYS	     MAC support is not	available (not installed).

     EPERM	     The process does not have appropriate privilege to
		     perform the operation to set the MAC label.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
newlabel IRIX run a process at another label
mac_set FreeBSD set the MAC label for a file or process
mac_set_file FreeBSD set the MAC label for a file or process
mac_set_proc FreeBSD set the MAC label for a file or process
mac_set_fd FreeBSD set the MAC label for a file or process
mac_set_link FreeBSD set the MAC label for a file or process
setpmac FreeBSD run a command with a different MAC process label
mac_get_fd FreeBSD get the label of a file, socket, socket peer or process
mac_get_pid FreeBSD get the label of a file, socket, socket peer or process
mac_get_proc FreeBSD get the label of a file, socket, socket peer or process
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service