[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

kcred_getpag Kernel Service

Purpose

Copies a process authentication group (PAG) ID from a credentials structure.

Syntax

#include <sys/cred.h>

int kcred_getpag ( crp, which, pag )
struct ucred * cr;
int which;
int * pag;

Parameters

crp Pointer to a credentials structure
which PAG ID to get
pag Process authentication group

Description

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.

Execution Environment

The kcred_getpag kernel service can be called from the process environment only.

Return Values

0 Success.
-1 An error has occurred.

Related Information

Security Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]