|PSETZONEID(3PROC)||Process Control Library Functions||PSETZONEID(3PROC)|
change processes zone id
Process Control Library (libproc, -lproc)
*P, zoneid_t zoneid);
function moves the process handle P into the zone
specified by zoneid. A process that is in the
non-global zone may only move between the global zone and its original zone.
A process that is in the global zone may not use this interface to enter a
non-global zone. This function will fail if called from a non-global zone.
This function only manipulates the processes credentials.
Care should be taken when moving a process around temporarily, such that if the process that is manipulating P dies, it does not cause P to resume running while still in the global zone. It is suggested that the PR_KLC flag is set with Psetflags(3PROC) which will cause the process to terminate if the process that holds P unexpectedly terminates. See proc(5) for more information on the PR_KLC flag.
Note, only active processes may change their zone. It is an error to call this function on process handles that correspond to core files, zombie processes, or files.
Psetzoneid() function will fail
|May 11, 2016||OmniOS|