mac_set_proc man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



MAC_GET_PROC(3C)					      MAC_GET_PROC(3C)

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

SYNOPSIS
     #include <sys/mac.h>

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

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

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net