xref: /titanic_52/usr/src/lib/libzonecfg/dtd/zonecfg.dtd.1 (revision 75d94465dbafa487b716482dc36d5150a4ec9853)
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			allowed-address	CDATA ""
53			defrouter	CDATA ""
54			physical	CDATA #REQUIRED>
55
56<!ELEMENT device	EMPTY>
57
58<!ATTLIST device	match		CDATA #REQUIRED>
59
60<!--
61	Historically, the deleted-device element denoted a used-to-be
62	device element.  This was used to keep track of device elements
63	deleted or modified by the user, and to cleanse /dev of such
64	entries at next zone boot.
65
66	With the ability to now configure devices dynamically, this
67	requirement no longer exists, but this element MUST remain in
68	perpetuity, since it is possible that an upgraded zone could
69	carry a deleted-device element, and would therefore fail XML
70	validation if removed
71-->
72<!ELEMENT deleted-device	EMPTY>
73
74<!ATTLIST deleted-device	match		CDATA #REQUIRED>
75
76<!ELEMENT rctl-value	EMPTY>
77
78<!ATTLIST rctl-value	priv		CDATA #REQUIRED
79			limit		CDATA #REQUIRED
80			action		CDATA #REQUIRED>
81
82<!ELEMENT rctl		(rctl-value)*>
83
84<!ATTLIST rctl		name		CDATA #REQUIRED>
85
86<!ELEMENT attr		EMPTY>
87
88<!ATTLIST attr		name		CDATA #REQUIRED
89			type		(boolean | int | string | uint)
90					#REQUIRED
91			value		CDATA #REQUIRED>
92
93<!ELEMENT dataset	EMPTY>
94
95<!ATTLIST dataset	name		CDATA #REQUIRED>
96
97<!ELEMENT package	EMPTY>
98
99<!ATTLIST package	name		CDATA #REQUIRED
100			version		CDATA #REQUIRED>
101
102<!ELEMENT obsoletes	EMPTY>
103<!ATTLIST obsoletes	id		CDATA #REQUIRED>
104
105<!ELEMENT incompatible	EMPTY>
106<!ATTLIST incompatible	id		CDATA #REQUIRED>
107
108<!ELEMENT patch	(obsoletes | incompatible)* >
109
110<!ATTLIST patch		id		CDATA #REQUIRED>
111
112<!ELEMENT dev-perm	EMPTY>
113
114<!ATTLIST dev-perm	name		CDATA #REQUIRED
115			uid		CDATA #REQUIRED
116			gid		CDATA #REQUIRED
117			mode		CDATA #REQUIRED
118			acl		CDATA #REQUIRED>
119
120<!--
121	The tmp_pool element is separate from the pset element so that
122	we can track the importance value at the pool level, where it
123	belongs, instead of at the pset level.  Once we have msets this
124	will be important since tmp psets and tmp msets will share a common
125	pool-level importance.
126-->
127<!ELEMENT tmp_pool	EMPTY>
128
129<!ATTLIST tmp_pool	importance	CDATA #REQUIRED>
130
131<!ELEMENT pset		EMPTY>
132
133<!ATTLIST pset		ncpu_min	CDATA #REQUIRED
134			ncpu_max	CDATA #REQUIRED>
135
136<!ELEMENT mcap		EMPTY>
137
138<!ATTLIST mcap		physcap		CDATA #REQUIRED>
139
140<!ELEMENT admin 	EMPTY>
141
142<!ATTLIST admin     	user		CDATA #REQUIRED
143                    	auths		CDATA #REQUIRED>
144
145<!ELEMENT zone		(filesystem | inherited-pkg-dir | network | device |
146			deleted-device | rctl | attr | dataset | package |
147			patch | dev-perm | tmp_pool | pset |
148			mcap | admin)*>
149
150<!ATTLIST zone		name		CDATA #REQUIRED
151			zonepath	CDATA #REQUIRED
152			autoboot	(true | false) #REQUIRED
153			ip-type		CDATA ""
154			hostid		CDATA ""
155			pool		CDATA ""
156			limitpriv	CDATA ""
157			bootargs	CDATA ""
158			brand		CDATA ""
159			scheduling-class	CDATA ""
160			fs-allowed	CDATA ""
161			version		NMTOKEN #FIXED '1'>
162