xref: /titanic_41/usr/src/lib/libzonecfg/dtd/zonecfg.dtd.1 (revision 1c42de6d020629af774dd9e9fc81be3f3ed9398e)
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 2007 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			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 | deleted-device | rctl | attr | dataset | package | patch | dev-perm | tmp_pool | pset | mcap)*>
135
136<!ATTLIST zone		name		CDATA #REQUIRED
137			zonepath	CDATA #REQUIRED
138			autoboot	(true | false) #REQUIRED
139			ip-type		CDATA ""
140			pool		CDATA ""
141			limitpriv	CDATA ""
142			bootargs	CDATA ""
143			brand		CDATA ""
144			scheduling-class	CDATA ""
145			version		NMTOKEN #FIXED '1'>
146