priv_mask Subroutine

Purpose

Stores the intersection of two privilege sets into a new privilege set.

Library

Security Library (libc.a)

Syntax

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

void priv_mask(privg_t pv1, privg_t pv2, privg_t pv3)

Description

The priv_mask subroutine computes the intersection of the privilege set specified by the pv1 and pv2 parameters, and stores the result into the pv3 parameter.

Parameters

Item Description
pv1 Specifies the privilege set.
pv2 Specifies the privilege set.
pv3 Specifies the place to store the intersection of the pv1 and pv2 parameters.

Return Values

The priv_mask subroutine returns no values.

Errors

No errno value is set.