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

Psetcredset process credentials

Process Control Library (libproc, -lproc)

#include <libproc.h>

Psetcred(struct ps_prochandle *P, const prcred_t *credp);

The () function updates the credentials of the process handle P to the values set in credp. credp must be fully initialized. The definition of the structure may be found in proc(5).

Note, the credentials may only be updated for an active process. If the process handle refers to a zombie process, core file, or a file, then () will fail.

Upon successful completion, the Psetcred() function returns and updates the credentials of the process P. Otherwise, is returned.

See in libproc(3LIB).

libproc(3LIB), Pcred(3PROC), proc(5)

May 11, 2016 OmniOS