privbit_set Subroutine

Purpose

Adds a privilege to a privilege set.

Library

Security Library (libc.a)

Syntax

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

void privbit_set(privg_t pv, int priv)

Description

The privbit_set subroutine adds the privilege specified by the priv parameter into the privilege set specified by the pv parameter.

Parameters

Item Description
priv Specifies the privilege to add.
pv Specifies the target privilege set.

Return Values

The privbit_set subroutine returns no value.

Errors

No errno value is set.