2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
19 .Nd change processes zone id
26 .Fa "struct ps_prochandle *P"
32 function moves the process handle
34 into the zone specified by
36 A process that is in the non-global zone may only move between the
37 global zone and its original zone.
38 A process that is in the global zone may not use this interface to enter a
40 This function will fail if called from a non-global zone.
41 This function only manipulates the processes credentials.
43 Care should be taken when moving a process around temporarily, such that
44 if the process that is manipulating
46 dies, it does not cause
48 to resume running while still in the global zone.
49 It is suggested that the
53 which will cause the process to terminate if the process that holds
55 unexpectedly terminates.
58 for more information on the
62 Note, only active processes may change their zone.
63 It is an error to call this function on process handles that correspond to core
64 files, zombie processes, or files.
66 Upon successful completion, the
70 and changes the zone for
78 For a full list of possible errors see the
85 function will fail if:
89 does not correspond to an existing zone or the zone id is not the global
90 zone or the original zone of
93 The caller does not hold the required privileges for zone configuration.
95 .Sh INTERFACE STABILITY