Copies a privilege vector from a credentials structure.
| Item | Description |
|---|---|
| crp | Points to a credentials structure. |
| which | Specifies the privilege set to get. |
| privset | Specifies the privilege set. |
The kcred_getppriv kernel service returns a single privilege set from the credentials structure referenced by the crp parameter. The which parameter is one of the values of PRIV_EFFECTIVE, PRIV_MAXIMUM, PRIV_INHERITED, PRIV_LIMITING, and PRIV_USED. The corresponding privilege set is copied to the privset parameter. The crp parameter must be a valid, referenced credentials structure.
The kcred_getppriv kernel service can be called from the process environment only.
| Item | Description |
|---|---|
| 0 | Success. |
| -1 | An error has occurred. |