Copies a process authentication group ID into a credentials structure.
#include <sys/cred.h> int kcred_setpag ( crp, which, pag ) struct ucred * cr; int which; int pag;
crp | Pointer to a credentials structure |
which | PAG ID to set |
pag | Process authentication group |
The kcred_setpag kernel service initializes the specified PAG in the credentials structure referenced by crp with pag. The value of which must be a defined PAG ID. The PAG ID for the Distributed Computing Environment (DCE) is 0. Crp must be a valid, referenced credentials structure. crp may be a reference to the current credentials of a process.
The kcred_setpag kernel service can be called from the process environment only.
0 | Success. |
-1 | An error has occurred. |
Security Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.