xref: /titanic_50/usr/src/lib/libzonecfg/dtd/zonecfg.dtd.1 (revision 9e421ec8af8c1a649841be72a22ee355f2e5e9c5)
1<?xml version='1.0' encoding='UTF-8' ?>
2
3<!--
4 CDDL HEADER START
5
6 The contents of this file are subject to the terms of the
7 Common Development and Distribution License (the "License").
8 You may not use this file except in compliance with the License.
9
10 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 or http://www.opensolaris.org/os/licensing.
12 See the License for the specific language governing permissions
13 and limitations under the License.
14
15 When distributing Covered Code, include this CDDL HEADER in each
16 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 If applicable, add the following below this CDDL HEADER, with the
18 fields enclosed by brackets "[]" replaced with your own identifying
19 information: Portions Copyright [yyyy] [name of copyright owner]
20
21 CDDL HEADER END
22
23 Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
24
25-->
26
27<!--Element Definitions-->
28
29<!ELEMENT fsoption	EMPTY>
30<!ATTLIST fsoption	name		CDATA #REQUIRED>
31
32<!ELEMENT filesystem	(fsoption)* >
33
34<!ATTLIST filesystem	special		CDATA #REQUIRED
35			raw		CDATA ""
36			directory	CDATA #REQUIRED
37			type		CDATA #REQUIRED>
38
39<!--
40 The "inherited-pkg-dir" element may no longer be specified in a
41 configuration, however we retain the definition to aid with migration
42 of existing configurations.
43-->
44
45<!ELEMENT inherited-pkg-dir	EMPTY>
46
47<!ATTLIST inherited-pkg-dir	directory	CDATA #REQUIRED>
48
49<!ELEMENT network	EMPTY>
50
51<!ATTLIST network	address		CDATA ""
52			defrouter	CDATA ""
53			physical	CDATA #REQUIRED>
54
55<!ELEMENT device	EMPTY>
56
57<!ATTLIST device	match		CDATA #REQUIRED>
58
59<!--
60	Historically, the deleted-device element denoted a used-to-be
61	device element.  This was used to keep track of device elements
62	deleted or modified by the user, and to cleanse /dev of such
63	entries at next zone boot.
64
65	With the ability to now configure devices dynamically, this
66	requirement no longer exists, but this element MUST remain in
67	perpetuity, since it is possible that an upgraded zone could
68	carry a deleted-device element, and would therefore fail XML
69	validation if removed
70-->
71<!ELEMENT deleted-device	EMPTY>
72
73<!ATTLIST deleted-device	match		CDATA #REQUIRED>
74
75<!ELEMENT rctl-value	EMPTY>
76
77<!ATTLIST rctl-value	priv		CDATA #REQUIRED
78			limit		CDATA #REQUIRED
79			action		CDATA #REQUIRED>
80
81<!ELEMENT rctl		(rctl-value)*>
82
83<!ATTLIST rctl		name		CDATA #REQUIRED>
84
85<!ELEMENT attr		EMPTY>
86
87<!ATTLIST attr		name		CDATA #REQUIRED
88			type		(boolean | int | string | uint)
89					#REQUIRED
90			value		CDATA #REQUIRED>
91
92<!ELEMENT dataset	EMPTY>
93
94<!ATTLIST dataset	name		CDATA #REQUIRED>
95
96<!ELEMENT package	EMPTY>
97
98<!ATTLIST package	name		CDATA #REQUIRED
99			version		CDATA #REQUIRED>
100
101<!ELEMENT obsoletes	EMPTY>
102<!ATTLIST obsoletes	id		CDATA #REQUIRED>
103
104<!ELEMENT incompatible	EMPTY>
105<!ATTLIST incompatible	id		CDATA #REQUIRED>
106
107<!ELEMENT patch	(obsoletes | incompatible)* >
108
109<!ATTLIST patch		id		CDATA #REQUIRED>
110
111<!ELEMENT dev-perm	EMPTY>
112
113<!ATTLIST dev-perm	name		CDATA #REQUIRED
114			uid		CDATA #REQUIRED
115			gid		CDATA #REQUIRED
116			mode		CDATA #REQUIRED
117			acl		CDATA #REQUIRED>
118
119<!--
120	The tmp_pool element is separate from the pset element so that
121	we can track the importance value at the pool level, where it
122	belongs, instead of at the pset level.  Once we have msets this
123	will be important since tmp psets and tmp msets will share a common
124	pool-level importance.
125-->
126<!ELEMENT tmp_pool	EMPTY>
127
128<!ATTLIST tmp_pool	importance	CDATA #REQUIRED>
129
130<!ELEMENT pset		EMPTY>
131
132<!ATTLIST pset		ncpu_min	CDATA #REQUIRED
133			ncpu_max	CDATA #REQUIRED>
134
135<!ELEMENT mcap		EMPTY>
136
137<!ATTLIST mcap		physcap		CDATA #REQUIRED>
138
139<!ELEMENT admin 	EMPTY>
140
141<!ATTLIST admin     	user		CDATA #REQUIRED
142                    	auths		CDATA #REQUIRED>
143
144<!ELEMENT zone		(filesystem | inherited-pkg-dir | network | device |
145			deleted-device | rctl | attr | dataset | package |
146			patch | dev-perm | tmp_pool | pset |
147			mcap | admin)*>
148
149<!ATTLIST zone		name		CDATA #REQUIRED
150			zonepath	CDATA #REQUIRED
151			autoboot	(true | false) #REQUIRED
152			ip-type		CDATA ""
153			hostid		CDATA ""
154			pool		CDATA ""
155			limitpriv	CDATA ""
156			bootargs	CDATA ""
157			brand		CDATA ""
158			scheduling-class	CDATA ""
159			fs-allowed	CDATA ""
160			version		NMTOKEN #FIXED '1'>
161