| PSECFLAGS(3PROC) | Process Control Library Functions | PSECFLAGS(3PROC) |
Psecflags,
Psecflags_free — get and
free process security flags
Process Control Library (libproc, -lproc)
#include
<libproc.h>
int
Psecflags(struct ps_prochandle
*P, prsecflags_t **psf);
void
Psecflags_free(struct ps_prochandle
*P, prsecflags_t *psf);
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(5).
The
Psecflags_free()
function releases the storage in psf that was
allocated as a result of calling Psecflags().
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.
See LOCKING in libproc(3LIB).
| June 6, 2016 | OmniOS |