PPRIV(3PROC) Process Control Library Functions PPRIV(3PROC)
NAME
Ppriv,
Ppriv_free - get and free process privilege sets
LIBRARY
Process Control Library (libproc, -lproc)
SYNOPSIS
#include <libproc.h> int Ppriv(
struct ps_prochandle *P,
prpriv_t **pprv);
void Ppriv_free(
struct ps_prochandle *P,
prpriv_t *prv);
DESCRIPTION
The
Ppriv() function obtains the privilege set of the process handle
P.
The privilege set, if it exists, will be dynamically allocated and a
pointer to it will be placed in
pprv. It must be released with a call
to
Ppriv_free(). The definition of the
prpriv_t structure is
documented in
proc(5).
The
Ppriv_free() function releases the storage in
prv that was
allocated as a result of calling
Ppriv().
RETURN VALUES
Upon successful completion, the
Ppriv() function returns
0 and
pprv is
updated with a pointer to the allocated privilege set. Otherwise,
-1 is returned and
pprv is not updated.
INTERFACE STABILITY
UncommittedMT-LEVEL See
LOCKING in
libproc(3LIB).
SEE ALSO
libproc(3LIB),
proc(5),
privileges(7)illumos May 11, 2016 illumos