crset Kernel Service

Purpose

Sets the current security credentials.

Syntax

#include <sys/cred.h>

void crset ( cr)
struct ucred * cr;

Parameter

Item Description
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.