|
|
HP-UX Reference > Ccmpt_change(3)HP-UX 11i Version 2: December 2007 Update |
|
NAMEcmpt_change(), cmpt_get() — set and get process' compartment DESCRIPTIONThe cmpt_change() and cmpt_get() functions query and manipulate the compartment of a process. The cmpt_get() function returns the given process' compartment ID. If 0 is passed as the pid parameter, the compartment ID of the calling process is returned. The cmpt_change() function changes the calling process' compartment ID to be the value of cid. Security RestrictionsIn order for the cmpt_change() function to be effective, the calling process must possess the CHANGECMPT privilege. See privileges(5) for more information about privileges. RETURN VALUEcmpt_get() returns the following values:
cmpt_change() returns the following values:
ERRORSIf any of the following conditions occur, the functions fail and set errno.
|
|