|PR_GETPEERUCRED(3PROC)||Process Control Library Functions||PR_GETPEERUCRED(3PROC)|
*P, int fd, ucred_t
pr_getpeerucred() function injects the getpeerucred(3C) library call into the target process P by means of the agent LWP. If the process handle P is
NULLthen this is equivalent to calling getpeerucred(3C) on the currently running process.
pr_getpeerucred() function only works
on active processes. Process handles that correspond to core files, zombie
processes, or ELF objects do not support library call injection.
pr_getpeerucred() function's return value is that described in getpeerucred(3C). Otherwise, -1 is returned and errno is set to
ENOSYSto indicate that the library call could not be injected.
pr_getpeerucred() function will fail
|May 11, 2016||OmniOS|