xref: /titanic_41/usr/src/lib/libzonecfg/dtd/zonecfg.dtd.1 (revision cb8a054b1ab30d5caa746e6c44f29d4c9d3071c1)
17c478bd9Sstevel@tonic-gate<?xml version='1.0' encoding='UTF-8' ?>
27c478bd9Sstevel@tonic-gate
37c478bd9Sstevel@tonic-gate<!--
47c478bd9Sstevel@tonic-gate CDDL HEADER START
57c478bd9Sstevel@tonic-gate
67c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the
7ee519a1fSgjelinek Common Development and Distribution License (the "License").
8ee519a1fSgjelinek You may not use this file except in compliance with the License.
97c478bd9Sstevel@tonic-gate
107c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
117c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
127c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
137c478bd9Sstevel@tonic-gate and limitations under the License.
147c478bd9Sstevel@tonic-gate
157c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
167c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
177c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
187c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
197c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
207c478bd9Sstevel@tonic-gate
217c478bd9Sstevel@tonic-gate CDDL HEADER END
227c478bd9Sstevel@tonic-gate
23*cb8a054bSGlenn Faden Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24fa9e4066Sahrens
257c478bd9Sstevel@tonic-gate-->
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gate<!--Element Definitions-->
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate<!ELEMENT fsoption	EMPTY>
307c478bd9Sstevel@tonic-gate<!ATTLIST fsoption	name		CDATA #REQUIRED>
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gate<!ELEMENT filesystem	(fsoption)* >
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate<!ATTLIST filesystem	special		CDATA #REQUIRED
357c478bd9Sstevel@tonic-gate			raw		CDATA ""
367c478bd9Sstevel@tonic-gate			directory	CDATA #REQUIRED
377c478bd9Sstevel@tonic-gate			type		CDATA #REQUIRED>
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gate<!ELEMENT inherited-pkg-dir	EMPTY>
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate<!ATTLIST inherited-pkg-dir	directory	CDATA #REQUIRED>
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gate<!ELEMENT network	EMPTY>
447c478bd9Sstevel@tonic-gate
45f4b3ec61Sdh155122<!ATTLIST network	address		CDATA ""
46de860bd9Sgfaden			defrouter	CDATA ""
477c478bd9Sstevel@tonic-gate			physical	CDATA #REQUIRED>
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate<!ELEMENT device	EMPTY>
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gate<!ATTLIST device	match		CDATA #REQUIRED>
527c478bd9Sstevel@tonic-gate
535749802bSdp<!--
54facf4a8dSllai1	Historically, the deleted-device element denoted a used-to-be
55facf4a8dSllai1	device element.  This was used to keep track of device elements
56facf4a8dSllai1	deleted or modified by the user, and to cleanse /dev of such
57facf4a8dSllai1	entries at next zone boot.
585749802bSdp
59facf4a8dSllai1	With the ability to now configure devices dynamically, this
60facf4a8dSllai1	requirement no longer exists, but this element MUST remain in
61facf4a8dSllai1	perpetuity, since it is possible that an upgraded zone could
62facf4a8dSllai1	carry a deleted-device element, and would therefore fail XML
63facf4a8dSllai1	validation if removed
645749802bSdp-->
655749802bSdp<!ELEMENT deleted-device	EMPTY>
665749802bSdp
675749802bSdp<!ATTLIST deleted-device	match		CDATA #REQUIRED>
685749802bSdp
697c478bd9Sstevel@tonic-gate<!ELEMENT rctl-value	EMPTY>
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gate<!ATTLIST rctl-value	priv		CDATA #REQUIRED
727c478bd9Sstevel@tonic-gate			limit		CDATA #REQUIRED
737c478bd9Sstevel@tonic-gate			action		CDATA #REQUIRED>
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate<!ELEMENT rctl		(rctl-value)*>
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gate<!ATTLIST rctl		name		CDATA #REQUIRED>
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate<!ELEMENT attr		EMPTY>
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gate<!ATTLIST attr		name		CDATA #REQUIRED
827c478bd9Sstevel@tonic-gate			type		(boolean | int | string | uint)
837c478bd9Sstevel@tonic-gate					#REQUIRED
847c478bd9Sstevel@tonic-gate			value		CDATA #REQUIRED>
857c478bd9Sstevel@tonic-gate
86fa9e4066Sahrens<!ELEMENT dataset	EMPTY>
87fa9e4066Sahrens
88fa9e4066Sahrens<!ATTLIST dataset	name		CDATA #REQUIRED>
89fa9e4066Sahrens
90ee519a1fSgjelinek<!ELEMENT package	EMPTY>
91ee519a1fSgjelinek
92ee519a1fSgjelinek<!ATTLIST package	name		CDATA #REQUIRED
93ee519a1fSgjelinek			version		CDATA #REQUIRED>
94ee519a1fSgjelinek
95ee519a1fSgjelinek<!ELEMENT obsoletes	EMPTY>
96ee519a1fSgjelinek<!ATTLIST obsoletes	id		CDATA #REQUIRED>
97ee519a1fSgjelinek
98ee519a1fSgjelinek<!ELEMENT incompatible	EMPTY>
99ee519a1fSgjelinek<!ATTLIST incompatible	id		CDATA #REQUIRED>
100ee519a1fSgjelinek
101ee519a1fSgjelinek<!ELEMENT patch	(obsoletes | incompatible)* >
102ee519a1fSgjelinek
103ee519a1fSgjelinek<!ATTLIST patch		id		CDATA #REQUIRED>
104ee519a1fSgjelinek
105ee519a1fSgjelinek<!ELEMENT dev-perm	EMPTY>
106ee519a1fSgjelinek
107ee519a1fSgjelinek<!ATTLIST dev-perm	name		CDATA #REQUIRED
108ee519a1fSgjelinek			uid		CDATA #REQUIRED
109ee519a1fSgjelinek			gid		CDATA #REQUIRED
110ee519a1fSgjelinek			mode		CDATA #REQUIRED
111ee519a1fSgjelinek			acl		CDATA #REQUIRED>
112ee519a1fSgjelinek
1130209230bSgjelinek<!--
1140209230bSgjelinek	The tmp_pool element is separate from the pset element so that
1150209230bSgjelinek	we can track the importance value at the pool level, where it
1160209230bSgjelinek	belongs, instead of at the pset level.  Once we have msets this
1170209230bSgjelinek	will be important since tmp psets and tmp msets will share a common
1180209230bSgjelinek	pool-level importance.
1190209230bSgjelinek-->
1200209230bSgjelinek<!ELEMENT tmp_pool	EMPTY>
1210209230bSgjelinek
1220209230bSgjelinek<!ATTLIST tmp_pool	importance	CDATA #REQUIRED>
1230209230bSgjelinek
1240209230bSgjelinek<!ELEMENT pset		EMPTY>
1250209230bSgjelinek
1260209230bSgjelinek<!ATTLIST pset		ncpu_min	CDATA #REQUIRED
1270209230bSgjelinek			ncpu_max	CDATA #REQUIRED>
1280209230bSgjelinek
1290209230bSgjelinek<!ELEMENT mcap		EMPTY>
1300209230bSgjelinek
1310209230bSgjelinek<!ATTLIST mcap		physcap		CDATA #REQUIRED>
1320209230bSgjelinek
133*cb8a054bSGlenn Faden<!ELEMENT admin 	EMPTY>
134*cb8a054bSGlenn Faden
135*cb8a054bSGlenn Faden<!ATTLIST admin     	user		CDATA #REQUIRED
136*cb8a054bSGlenn Faden                    	auths		CDATA #REQUIRED>
137*cb8a054bSGlenn Faden
1385679c89fSjv227347<!ELEMENT zone		(filesystem | inherited-pkg-dir | network | device |
1395679c89fSjv227347			deleted-device | rctl | attr | dataset | package |
140*cb8a054bSGlenn Faden			patch | dev-perm | tmp_pool | pset |
141*cb8a054bSGlenn Faden			mcap | admin)*>
1427c478bd9Sstevel@tonic-gate
1437c478bd9Sstevel@tonic-gate<!ATTLIST zone		name		CDATA #REQUIRED
1447c478bd9Sstevel@tonic-gate			zonepath	CDATA #REQUIRED
1457c478bd9Sstevel@tonic-gate			autoboot	(true | false) #REQUIRED
146f4b3ec61Sdh155122			ip-type		CDATA ""
1475679c89fSjv227347			hostid		CDATA ""
1487c478bd9Sstevel@tonic-gate			pool		CDATA ""
149ffbafc53Scomay			limitpriv	CDATA ""
1503f2f09c1Sdp			bootargs	CDATA ""
1519acbbeafSnn35248			brand		CDATA ""
1520209230bSgjelinek			scheduling-class	CDATA ""
1537c478bd9Sstevel@tonic-gate			version		NMTOKEN #FIXED '1'>
154