xref: /titanic_51/usr/src/lib/libzonecfg/dtd/zonecfg.dtd.1 (revision 613b28719c10e84c1202c1045df44d77767de21d)
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 2008 Sun Microsystems, Inc.  All rights reserved.
24 Use is subject to license terms.
25
26 ident	"%Z%%M%	%I%	%E% SMI"
27-->
28
29<!--Element Definitions-->
30
31<!ELEMENT fsoption	EMPTY>
32<!ATTLIST fsoption	name		CDATA #REQUIRED>
33
34<!ELEMENT filesystem	(fsoption)* >
35
36<!ATTLIST filesystem	special		CDATA #REQUIRED
37			raw		CDATA ""
38			directory	CDATA #REQUIRED
39			type		CDATA #REQUIRED>
40
41<!ELEMENT inherited-pkg-dir	EMPTY>
42
43<!ATTLIST inherited-pkg-dir	directory	CDATA #REQUIRED>
44
45<!ELEMENT network	EMPTY>
46
47<!ATTLIST network	address		CDATA ""
48			defrouter	CDATA ""
49			physical	CDATA #REQUIRED>
50
51<!ELEMENT device	EMPTY>
52
53<!ATTLIST device	match		CDATA #REQUIRED>
54
55<!--
56	Historically, the deleted-device element denoted a used-to-be
57	device element.  This was used to keep track of device elements
58	deleted or modified by the user, and to cleanse /dev of such
59	entries at next zone boot.
60
61	With the ability to now configure devices dynamically, this
62	requirement no longer exists, but this element MUST remain in
63	perpetuity, since it is possible that an upgraded zone could
64	carry a deleted-device element, and would therefore fail XML
65	validation if removed
66-->
67<!ELEMENT deleted-device	EMPTY>
68
69<!ATTLIST deleted-device	match		CDATA #REQUIRED>
70
71<!ELEMENT rctl-value	EMPTY>
72
73<!ATTLIST rctl-value	priv		CDATA #REQUIRED
74			limit		CDATA #REQUIRED
75			action		CDATA #REQUIRED>
76
77<!ELEMENT rctl		(rctl-value)*>
78
79<!ATTLIST rctl		name		CDATA #REQUIRED>
80
81<!ELEMENT attr		EMPTY>
82
83<!ATTLIST attr		name		CDATA #REQUIRED
84			type		(boolean | int | string | uint)
85					#REQUIRED
86			value		CDATA #REQUIRED>
87
88<!ELEMENT dataset	EMPTY>
89
90<!ATTLIST dataset	name		CDATA #REQUIRED>
91
92<!ELEMENT package	EMPTY>
93
94<!ATTLIST package	name		CDATA #REQUIRED
95			version		CDATA #REQUIRED>
96
97<!ELEMENT obsoletes	EMPTY>
98<!ATTLIST obsoletes	id		CDATA #REQUIRED>
99
100<!ELEMENT incompatible	EMPTY>
101<!ATTLIST incompatible	id		CDATA #REQUIRED>
102
103<!ELEMENT patch	(obsoletes | incompatible)* >
104
105<!ATTLIST patch		id		CDATA #REQUIRED>
106
107<!ELEMENT dev-perm	EMPTY>
108
109<!ATTLIST dev-perm	name		CDATA #REQUIRED
110			uid		CDATA #REQUIRED
111			gid		CDATA #REQUIRED
112			mode		CDATA #REQUIRED
113			acl		CDATA #REQUIRED>
114
115<!--
116	The tmp_pool element is separate from the pset element so that
117	we can track the importance value at the pool level, where it
118	belongs, instead of at the pset level.  Once we have msets this
119	will be important since tmp psets and tmp msets will share a common
120	pool-level importance.
121-->
122<!ELEMENT tmp_pool	EMPTY>
123
124<!ATTLIST tmp_pool	importance	CDATA #REQUIRED>
125
126<!ELEMENT pset		EMPTY>
127
128<!ATTLIST pset		ncpu_min	CDATA #REQUIRED
129			ncpu_max	CDATA #REQUIRED>
130
131<!ELEMENT mcap		EMPTY>
132
133<!ATTLIST mcap		physcap		CDATA #REQUIRED>
134
135<!ELEMENT zone		(filesystem | inherited-pkg-dir | network | device | deleted-device | rctl | attr | dataset | package | patch | dev-perm | tmp_pool | pset | mcap)*>
136
137<!ATTLIST zone		name		CDATA #REQUIRED
138			zonepath	CDATA #REQUIRED
139			autoboot	(true | false) #REQUIRED
140			ip-type		CDATA ""
141			pool		CDATA ""
142			limitpriv	CDATA ""
143			bootargs	CDATA ""
144			brand		CDATA ""
145			scheduling-class	CDATA ""
146			version		NMTOKEN #FIXED '1'>
147