priv_copy Subroutine

Purpose

Copies privileges.

Library

Security Library (libc.a)

Syntax

#include <userpriv.h>
#include <sys/priv.h>

void priv_copy(privg_t pv1, privg_t pv2)

Description

The priv_copy subroutine copies all of the privileges specified in the pv1 privilege set to the pv2 privilege set, and replaces all of the privileges in the pv2 privilege set.

Parameters

Item Description
pv1 Specifies the privilege set to copy from.
pv2 Specifies the privilege set to copy to.

Return Values

The priv_copy subroutine returns no values.

Errors

No errno value is set.