kcred_setppriv Kernel Service
Purpose
Copies a privilege vector into a credentials structure.
Syntax
Parameters
Item | Description |
---|---|
crp | Points to a credentials structure. |
which | Specifies the privilege set to set. |
privset | Specifies the privilege set. |
Description
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.
Execution Environment
The kcred_setppriv kernel service can be called from the process environment only.
Return Values
Item | Description |
---|---|
0 | Success. |
-1 | An error has occurred. |