PSECFLAGS(3PROC) Process Control Library Functions PSECFLAGS(3PROC)

NAME


Psecflags, Psecflags_free - get and free process security flags

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

int
Psecflags(struct ps_prochandle *P, prsecflags_t **psf);

void
Psecflags_free(struct ps_prochandle *P, prsecflags_t *psf);

DESCRIPTION


The Psecflags() function obtains the security flags of the process handle
P. The security flags structure will be dynamically allocated and a
pointer to it will be placed in psf. It must be released with a call to
Psecflags_free(). The definition of the prsecflags_t structure is
documented in proc(4).

The Psecflags_free() function releases the storage in psf that was
allocated as a result of calling Psecflags().

RETURN VALUES


Upon successful completion, the Psecflags() function returns 0 and psf is
updated with a pointer to the allocated security flags. Otherwise, -1 is
returned and psf is not updated.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


libproc(3LIB), proc(4), security-flags(5)

illumos June 6, 2016 illumos