kcred_getpaginfo Kernel Service

Purpose

Returns a Process Authentication Group (PAG) flags for a given PAG type.

Syntax

#include <sys/cred.h>

int kcred_getpaginfo ( type, infop, infosz )
int type;
struct paginfo *  infop
int infosz;

Parameters

Item Description
type PAG for which the flags are returned
infop Pointer to PAG info structure
infosz Size of paginfo structure

Description

The kcred_getpaginfo kernel service retrieves the flags for the specific PAG type and stores them in a PAG info structure. The value of type must be a defined PAG ID. The PAG ID for the Distributed Computing Environment (DCE) is 0. The infop parameter must be a valid, referenced PAG info structure of the size specified by infosz.

Execution Environment

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

Return Values

A value of 0 is returned upon successful completion. Upon failure, a -1 is returned and errno is set to a value that explains the error.