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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  24  Copyright (c) 2011, Joyent Inc. All rights reserved.
  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 <!--
  41  The "inherited-pkg-dir" element may no longer be specified in a
  42  configuration, however we retain the definition to aid with migration
  43  of existing configurations.
  44 -->
  45 
  46 <!ELEMENT inherited-pkg-dir  EMPTY>
  47 
  48 <!ATTLIST inherited-pkg-dir  directory       CDATA #REQUIRED>
  49 
  50 <!ELEMENT network    EMPTY>
  51 
  52 <!ATTLIST network    address         CDATA ""
  53                         allowed-address CDATA ""
  54                         defrouter       CDATA ""
  55                         physical        CDATA #REQUIRED>
  56 
  57 <!ELEMENT device     EMPTY>
  58 
  59 <!ATTLIST device     match           CDATA #REQUIRED>
  60 
  61 <!--
  62         Historically, the deleted-device element denoted a used-to-be
  63         device element.  This was used to keep track of device elements
  64         deleted or modified by the user, and to cleanse /dev of such
  65         entries at next zone boot.
  66 
  67         With the ability to now configure devices dynamically, this
  68         requirement no longer exists, but this element MUST remain in
  69         perpetuity, since it is possible that an upgraded zone could
  70         carry a deleted-device element, and would therefore fail XML
  71         validation if removed
  72 -->
  73 <!ELEMENT deleted-device     EMPTY>
  74 
  75 <!ATTLIST deleted-device     match           CDATA #REQUIRED>
  76 
  77 <!ELEMENT rctl-value EMPTY>
  78 
  79 <!ATTLIST rctl-value priv            CDATA #REQUIRED
  80                         limit           CDATA #REQUIRED
  81                         action          CDATA #REQUIRED>
  82 
  83 <!ELEMENT rctl               (rctl-value)*>
  84 
  85 <!ATTLIST rctl               name            CDATA #REQUIRED>
  86 
  87 <!ELEMENT attr               EMPTY>
  88 
  89 <!ATTLIST attr               name            CDATA #REQUIRED
  90                         type            (boolean | int | string | uint)
  91                                         #REQUIRED
  92                         value           CDATA #REQUIRED>
  93 
  94 <!ELEMENT dataset    EMPTY>
  95 
  96 <!ATTLIST dataset    name            CDATA #REQUIRED>
  97 
  98 <!ELEMENT package    EMPTY>
  99 
 100 <!ATTLIST package    name            CDATA #REQUIRED
 101                         version         CDATA #REQUIRED>
 102 
 103 <!ELEMENT obsoletes  EMPTY>
 104 <!ATTLIST obsoletes  id              CDATA #REQUIRED>
 105 
 106 <!ELEMENT incompatible       EMPTY>
 107 <!ATTLIST incompatible       id              CDATA #REQUIRED>
 108 
 109 <!ELEMENT patch      (obsoletes | incompatible)* >
 110 
 111 <!ATTLIST patch              id              CDATA #REQUIRED>
 112 
 113 <!ELEMENT dev-perm   EMPTY>
 114 
 115 <!ATTLIST dev-perm   name            CDATA #REQUIRED
 116                         uid             CDATA #REQUIRED
 117                         gid             CDATA #REQUIRED
 118                         mode            CDATA #REQUIRED
 119                         acl             CDATA #REQUIRED>
 120 
 121 <!--
 122         The tmp_pool element is separate from the pset element so that
 123         we can track the importance value at the pool level, where it
 124         belongs, instead of at the pset level.  Once we have msets this
 125         will be important since tmp psets and tmp msets will share a common
 126         pool-level importance.
 127 -->
 128 <!ELEMENT tmp_pool   EMPTY>
 129 
 130 <!ATTLIST tmp_pool   importance      CDATA #REQUIRED>
 131 
 132 <!ELEMENT pset               EMPTY>
 133 
 134 <!ATTLIST pset               ncpu_min        CDATA #REQUIRED
 135                         ncpu_max        CDATA #REQUIRED>
 136 
 137 <!ELEMENT mcap               EMPTY>
 138 
 139 <!ATTLIST mcap               physcap         CDATA #REQUIRED>
 140 
 141 <!ELEMENT admin      EMPTY>
 142 
 143 <!ATTLIST admin      user            CDATA #REQUIRED
 144                         auths           CDATA #REQUIRED>
 145 
 146 <!ELEMENT security-flags     EMPTY>
 147 
 148 <!ATTLIST security-flags             default         CDATA ""
 149                         lower           CDATA ""
 150                         upper           CDATA "">
 151 
 152 <!ELEMENT zone               (filesystem | inherited-pkg-dir | network | device |
 153                         deleted-device | rctl | attr | dataset | package |
 154                         patch | dev-perm | tmp_pool | pset |
 155                         mcap | admin | security-flags)*>
 156 
 157 <!ATTLIST zone               name            CDATA #REQUIRED
 158                         zonepath        CDATA #REQUIRED
 159                         autoboot        (true | false) #REQUIRED
 160                         ip-type         CDATA ""
 161                         hostid          CDATA ""
 162                         pool            CDATA ""
 163                         limitpriv       CDATA ""
 164                         bootargs        CDATA ""
 165                         brand           CDATA ""
 166                         debugid         CDATA ""
 167                         scheduling-class        CDATA ""
 168                         fs-allowed      CDATA ""
 169                         version         NMTOKEN #FIXED '1'>