xref: /titanic_41/usr/src/lib/libzonecfg/dtd/zonecfg.dtd.1 (revision 5749802bc1ab53eee0631759471dabfc4b455cd4)
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 2006 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 #REQUIRED
48			physical	CDATA #REQUIRED>
49
50<!ELEMENT device	EMPTY>
51
52<!ATTLIST device	match		CDATA #REQUIRED>
53
54<!--
55	The deleted-device element denotes a used-to-be device element.
56	We keep track of device elements which the user has deleted or
57	modified, and make an attempt to cleanse /dev of associated entries
58	at next zone boot.
59
60	The 'devnames' project will ultimately obsolete the need for this
61	functionality, but this element MUST remain in perpetuity, since
62	it is possible that zones crossing from pre-devnames to post-devnames
63	bits could carry a deleted-device element, and would therefore fail
64	XML validation if this were 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<!ELEMENT zone		(filesystem | inherited-pkg-dir | network | device | deleted-device | rctl | attr | dataset | package | patch | dev-perm)*>
115
116<!ATTLIST zone		name		CDATA #REQUIRED
117			zonepath	CDATA #REQUIRED
118			autoboot	(true | false) #REQUIRED
119			pool		CDATA ""
120			limitpriv	CDATA ""
121			bootargs	CDATA ""
122			version		NMTOKEN #FIXED '1'>
123