priv_subset Subroutine
Purpose
Determines whether the privileges are subsets.
Library
Security Library (libc.a)
Syntax
Description
The priv_subset subroutine determines whether the privileges specified by the pv1 parameter are subsets of the privileges specified by the pv2 parameter.
Parameters
Item | Description |
---|---|
pv1 | The privilege set that might be the subsets of the pv2 parameter. |
pv2 | The privilege set whose subsets might be the pv1 parameter. |
Return Values
The priv_subset subroutine returns one of the following values:
Item | Description |
---|---|
0 | The pv1 parameter is not subset of the pv2 parameter. |
1 | The pv1 parameter is subset of the pv2 parameter. |
Errors
No errno value is set.