Copies a process authentication group (PAG) ID from a credentials structure.
#include <sys/cred.h> int kcred_getpag ( crp, which, pag ) struct ucred * cr; int which; int * pag;
crp | Pointer to a credentials structure |
which | PAG ID to get |
pag | Process authentication group |
The kcred_getpag kernel service copies the requested PAG from the credentials structure referenced by crp into 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.
The kcred_getpag 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.