NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | RETURN VALUES | ERRORS | SEE ALSO
#include <tsol/priv.h>int set_effective_priv(priv_op_t op, int privno, [ , priv_t priv_id, ... ] );
These routines, located in the Trusted Solaris library, assign the effective, inheritable, and permitted privilege sets, respectively, for the current process. These routines provide a user-friendly interface to the system call setppriv(2) . op is one of these operations:
Add the specified privilege ID s to the privilege set of the target process.
Clear the specified privileges from the privilege set of the target process.
Add the specified privilege ID s to the privilege set of the target process and clear all other privileges.
privno indicates the count of privilege ID s that follow. The behavior of these routines is undefined if privno is less than zero. priv_id is a numerical privilege ID defined in <priv_names.h> .
Note that if op is PRIV_SET and privno is 0 , the target privilege set is initialized to the empty set.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Availability | SUNWtsu |
MT-Level | MT-Safe |
The specified privilege is invalid.
A specified privilege is not permitted in the asserted set of privileges.
NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | RETURN VALUES | ERRORS | SEE ALSO