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
25 .Fa "struct ps_prochandle *P"
31 function moves the process handle
33 into the zone specified by
35 A process that is in the non-global zone may only move between the
36 global zone and its original zone.
37 A process that is in the global zone may not use this interface to enter a
39 This function will fail if called from a non-global zone.
40 This function only manipulates the processes credentials.
42 Care should be taken when moving a process around temporarily, such that
43 if the process that is manipulating
45 dies, it does not cause
47 to resume running while still in the global zone.
48 It is suggested that the
52 which will cause the process to terminate if the process that holds
54 unexpectedly terminates.
57 for more information on the
61 Note, only active processes may change their zone.
62 It is an error to call this function on process handles that correspond to core
63 files, zombie processes, or files.
65 Upon successful completion, the
69 and changes the zone for
77 For a full list of possible errors see the
84 function will fail if:
88 does not correspond to an existing zone or the zone id is not the global
89 zone or the original zone of
92 The caller does not hold the required privileges for zone configuration.
94 .Sh INTERFACE STABILITY