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

Technical Reference: Kernel and Subsystems, Volume 1

crset Kernel Service

Purpose

Sets the current security credentials.

Syntax

#include <sys/cred.h>


void crset ( cr)
struct ucred * cr;

Parameter

cr Pointer to the credentials structure that will become the new, current security credentials.

Description

The crset kernel service replaces the current security credentials with the supplied value. The existing structure will be deallocated.

Note
The cr parameter must have been obtained by an earlier call to the crcopy kernel service, crdup kernel service, crget kernel service, or the crref kernel service.

Execution Environment

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

Return Values

No value is returned by this kernel service.

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 ]