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

Technical Reference: Kernel and Subsystems, Volume 1

kcred_getgroups Kernel Service

Purpose

Copies the concurrent group set from a credentials structure.

Syntax

#include <sys/cred.h>

int kcred_getgroups ( crp, ngroups, groups )
struct ucred * cr;
int ngroups;
gid_t * groups;

Parameters

crp Pointer to a credentials structure
ngroups Size of the array of group ID values
groups Array of group ID values

Description

The kcred_getgroups kernel service returns up to ngroups concurrent group set members from the credentials structure pointed to by crp. crp must be a valid referenced credentials structure.

Execution Environment

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

Return Values

>= 0 The number of concurrent groups copied to groups.
-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 ]