Copies a privilege vector into a credentials structure.
Item | Description |
---|---|
crp | Points to a credentials structure. |
which | Specifies the privilege set to set. |
privset | Specifies the privilege set. |
The kcred_setppriv kernel service sets one or more single privilege sets in the credentials structure referenced by the crp parameter. The which parameter is the bitwise OR of one or more values of PRIV_EFFECTIVE, PRIV_MAXIMUM, PRIV_INHERITED, PRIV_LIMITING, and PRIV_USED. The privset parameter initializes the corresponding privilege sets. The crp parameter must be a valid, referenced credentials structure and cannot be the current credentials of any process.
The kcred_setppriv kernel service can be called from the process environment only.
Item | Description |
---|---|
0 | Success. |
-1 | An error has occurred. |