Print this page
2594 implement graceful shutdown for local zones in zoneadm
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/brand/solaris10/zone/config.xml
+++ new/usr/src/lib/brand/solaris10/zone/config.xml
1 1 <?xml version="1.0"?>
2 2
3 3 <!--
4 4 CDDL HEADER START
5 5
6 6 The contents of this file are subject to the terms of the
7 7 Common Development and Distribution License (the "License").
8 8 You may not use this file except in compliance with the License.
9 9
10 10 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 11 or http://www.opensolaris.org/os/licensing.
12 12 See the License for the specific language governing permissions
13 13 and limitations under the License.
14 14
15 15 When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 17 If applicable, add the following below this CDDL HEADER, with the
18 18 fields enclosed by brackets "[]" replaced with your own identifying
19 19 information: Portions Copyright [yyyy] [name of copyright owner]
20 20
21 21 CDDL HEADER END
22 22
23 23 Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24 24
25 25 DO NOT EDIT THIS FILE.
26 + Copyright 2014 Nexenta Systems, Inc. All rights reserved.
26 27 -->
27 28
28 29 <!DOCTYPE brand PUBLIC "-//Sun Microsystems Inc//DTD Brands//EN"
29 30 "file:///usr/share/lib/xml/dtd/brand.dtd.1">
30 31
31 32 <brand name="solaris10">
32 33 <modname>s10_brand</modname>
33 34 <initname>/sbin/init</initname>
34 35 <login_cmd>/usr/bin/login -z %Z %u</login_cmd>
35 36 <forcedlogin_cmd>/usr/bin/login -z %Z -f %u</forcedlogin_cmd>
36 37 <user_cmd>/usr/bin/getent passwd %u</user_cmd>
37 38
38 39 <install>/usr/lib/brand/solaris10/image_install %z %R</install>
39 40 <installopts>a:d:Fpsuv</installopts>
40 41 <boot>/usr/lib/brand/solaris10/s10_boot %z %R</boot>
41 42 <sysboot>/usr/lib/brand/solaris10/prestate %z %R 2 0</sysboot>
42 43 <halt></halt>
44 + <shutdown>/usr/sbin/shutdown -y -g0 -i5</shutdown>
43 45 <verify_cfg>/usr/lib/brand/solaris10/s10_support verify</verify_cfg>
44 46 <verify_adm></verify_adm>
45 47 <postattach>/usr/lib/brand/solaris10/postattach %z %R</postattach>
46 48 <attach>/usr/lib/brand/solaris10/attach %z %R</attach>
47 49 <detach>/usr/lib/brand/solaris10/detach %z %R</detach>
48 50 <clone>/usr/lib/brand/solaris10/clone -z %z -R %R</clone>
49 51 <preuninstall>/usr/lib/brand/solaris10/preuninstall %z %R</preuninstall>
50 52 <uninstall>/usr/lib/brand/solaris10/uninstall %z %R</uninstall>
51 53 <prestatechange>/usr/lib/brand/solaris10/prestate %z %R</prestatechange>
52 54 <poststatechange>/usr/lib/brand/solaris10/poststate %z %R</poststatechange>
53 55 <query>/usr/lib/brand/shared/query %z %R</query>
54 56
55 57 <privilege set="default" name="contract_event" />
56 58 <privilege set="default" name="contract_identity" />
57 59 <privilege set="default" name="contract_observer" />
58 60 <privilege set="default" name="file_chown" />
59 61 <privilege set="default" name="file_chown_self" />
60 62 <privilege set="default" name="file_dac_execute" />
61 63 <privilege set="default" name="file_dac_read" />
62 64 <privilege set="default" name="file_dac_search" />
63 65 <privilege set="default" name="file_dac_write" />
64 66 <privilege set="default" name="file_owner" />
65 67 <privilege set="default" name="file_setid" />
66 68 <privilege set="default" name="ipc_dac_read" />
67 69 <privilege set="default" name="ipc_dac_write" />
68 70 <privilege set="default" name="ipc_owner" />
69 71 <privilege set="default" name="net_bindmlp" />
70 72 <privilege set="default" name="net_icmpaccess" />
71 73 <privilege set="default" name="net_mac_aware" />
72 74 <privilege set="default" name="net_observability" />
73 75 <privilege set="default" name="net_privaddr" />
74 76 <privilege set="default" name="net_rawaccess" ip-type="exclusive" />
75 77 <privilege set="default" name="proc_chroot" />
76 78 <privilege set="default" name="sys_audit" />
77 79 <privilege set="default" name="proc_audit" />
78 80 <privilege set="default" name="proc_lock_memory" />
79 81 <privilege set="default" name="proc_owner" />
80 82 <privilege set="default" name="proc_setid" />
81 83 <privilege set="default" name="proc_taskid" />
82 84 <privilege set="default" name="sys_acct" />
83 85 <privilege set="default" name="sys_admin" />
84 86 <privilege set="default" name="sys_ip_config" ip-type="exclusive" />
85 87 <privilege set="default" name="sys_iptun_config" ip-type="exclusive" />
86 88 <privilege set="default" name="sys_mount" />
87 89 <privilege set="default" name="sys_nfs" />
88 90 <privilege set="default" name="sys_resource" />
89 91 <privilege set="default" name="sys_ppp_config" ip-type="exclusive" />
90 92
91 93 <privilege set="prohibited" name="dtrace_kernel" />
92 94 <privilege set="prohibited" name="proc_zone" />
93 95 <privilege set="prohibited" name="sys_config" />
94 96 <privilege set="prohibited" name="sys_devices" />
95 97 <privilege set="prohibited" name="sys_ip_config" ip-type="shared" />
96 98 <privilege set="prohibited" name="sys_linkdir" />
97 99 <privilege set="prohibited" name="sys_net_config" />
98 100 <privilege set="prohibited" name="sys_res_config" />
99 101 <privilege set="prohibited" name="sys_suser_compat" />
100 102 <privilege set="prohibited" name="xvm_control" />
101 103 <privilege set="prohibited" name="virt_manage" />
102 104 <privilege set="prohibited" name="sys_ppp_config" ip-type="shared" />
103 105
104 106 <privilege set="required" name="proc_exec" />
105 107 <privilege set="required" name="proc_fork" />
106 108 <privilege set="required" name="sys_ip_config" ip-type="exclusive" />
107 109 <privilege set="required" name="sys_mount" />
108 110 </brand>
↓ open down ↓ |
56 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX