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