Print this page
7882 Add /dev/full , the always-full memory device
Reviewed by: Adam Stevko <adam.stevko@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/brand/labeled/zone/platform.xml
+++ new/usr/src/lib/brand/labeled/zone/platform.xml
1 1 <?xml version="1.0"?>
2 2
3 3 <!--
4 4 CDDL HEADER START
5 5
6 6 The contents of this file are subject to the terms of the
7 7 Common Development and Distribution License (the "License").
8 8 You may not use this file except in compliance with the License.
9 9
10 10 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 11 or http://www.opensolaris.org/os/licensing.
12 12 See the License for the specific language governing permissions
13 13 and limitations under the License.
14 14
15 15 When distributing Covered Code, include this CDDL HEADER in each
16 16 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 17 If applicable, add the following below this CDDL HEADER, with the
18 18 fields enclosed by brackets "[]" replaced with your own identifying
19 19 information: Portions Copyright [yyyy] [name of copyright owner]
20 20
21 21 CDDL HEADER END
22 22
23 23 Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 24 Use is subject to license terms.
25 25
26 26 DO NOT EDIT THIS FILE.
27 27 -->
28 28
29 29 <!DOCTYPE platform PUBLIC "-//Sun Microsystems Inc//Zones Platform//EN"
30 30 "file:///usr/share/lib/xml/dtd/zone_platform.dtd.1">
31 31
32 32 <platform name="labeled" allow-exclusive-ip="true">
33 33
34 34 <!-- Global filesystems to mount when booting the zone -->
35 35 <global_mount special="/dev" directory="/dev" type="dev"
36 36 opt="attrdir=%R/root/dev"/>
37 37
38 38 <!--
39 39 etc/gconf has GNOME settings; this mount facilitates sharing
40 40 the global zone settings with the labeled zone.
41 41 -->
42 42 <global_mount special="/etc/gconf" directory="/etc/gconf-global"
43 43 type="lofs"/>
44 44
45 45 <!--
46 46 Export rendezvous files for global zone services including
47 47 Xorg, nscd, and labeld.
48 48 -->
49 49 <global_mount special="/var/tsol/doors"
50 50 directory="/var/tsol/doors" type="lofs"/>
51 51
52 52 <!-- Local filesystems to mount when booting the zone -->
53 53 <mount special="/proc" directory="/proc" type="proc" />
54 54 <mount special="ctfs" directory="/system/contract" type="ctfs" />
55 55 <mount special="mnttab" directory="/etc/mnttab" type="mntfs" />
56 56 <mount special="objfs" directory="/system/object" type="objfs" />
57 57 <mount special="swap" directory="/etc/svc/volatile" type="tmpfs" />
58 58
59 59 <!-- Devices to create under /dev -->
↓ open down ↓ |
59 lines elided |
↑ open up ↑ |
60 60 <device match="arp" />
61 61 <device match="bpf" />
62 62 <device match="conslog" />
63 63 <device match="cpu/self/cpuid" />
64 64 <device match="crypto" />
65 65 <device match="cryptoadm" />
66 66 <device match="dsk" />
67 67 <device match="dtrace/*" />
68 68 <device match="dtrace/provider/*" />
69 69 <device match="fd" />
70 + <device match="full" />
70 71 <device match="ipnet" />
71 72 <device match="kstat" />
72 73 <device match="lo0" />
73 74 <device match="log" />
74 75 <device match="logindmux" />
75 76 <device match="nsmb" />
76 77 <device match="net/*" />
77 78 <device match="null" />
78 79 <device match="openprom" arch="sparc" />
79 80 <device match="poll" />
80 81 <device match="pool" />
81 82 <device match="ptmx" />
82 83 <device match="pts/*" />
83 84 <device match="random" />
84 85 <device match="rdsk" />
85 86 <device match="rmt" />
86 87 <device match="sad/user" />
87 88 <device match="svvslo0" />
88 89 <device match="svvslo1" />
89 90 <device match="svvslo2" />
90 91 <device match="svvslo3" />
91 92 <device match="swap" />
92 93 <device match="sysevent" />
93 94 <device match="tcp" />
94 95 <device match="tcp6" />
95 96 <device match="term" />
96 97 <device match="ticlts" />
97 98 <device match="ticots" />
98 99 <device match="ticotsord" />
99 100 <device match="tty" />
100 101 <device match="udp" />
101 102 <device match="udp6" />
102 103 <device match="urandom" />
103 104 <device match="zero" />
104 105 <device match="zfs" />
105 106
106 107 <!-- Devices to create in exclusive IP zone only -->
107 108 <device match="dld" ip-type="exclusive" />
108 109 <device match="icmp" ip-type="exclusive" />
109 110 <device match="icmp6" ip-type="exclusive" />
110 111 <device match="ip" ip-type="exclusive" />
111 112 <device match="ip6" ip-type="exclusive" />
112 113 <device match="ipauth" ip-type="exclusive" />
113 114 <device match="ipf" ip-type="exclusive" />
114 115 <device match="ipl" ip-type="exclusive" />
115 116 <device match="iplookup" ip-type="exclusive" />
116 117 <device match="ipmpstub" ip-type="exclusive" />
117 118 <device match="ipnat" ip-type="exclusive" />
118 119 <device match="ipscan" ip-type="exclusive" />
119 120 <device match="ipsecah" ip-type="exclusive" />
120 121 <device match="ipsecesp" ip-type="exclusive" />
121 122 <device match="ipstate" ip-type="exclusive" />
122 123 <device match="ipsync" ip-type="exclusive" />
123 124 <device match="keysock" ip-type="exclusive" />
124 125 <device match="rawip" ip-type="exclusive" />
125 126 <device match="rawip6" ip-type="exclusive" />
126 127 <device match="rts" ip-type="exclusive" />
127 128 <device match="sad/admin" ip-type="exclusive" />
128 129 <device match="sctp" ip-type="exclusive" />
129 130 <device match="sctp6" ip-type="exclusive" />
130 131 <device match="spdsock" ip-type="exclusive" />
131 132 <device match="sppp" ip-type="exclusive" />
132 133 <device match="sppptun" ip-type="exclusive" />
133 134 <device match="vni" ip-type="exclusive" />
134 135
135 136 <!-- Renamed devices to create under /dev -->
136 137 <device match="zcons/%z/zoneconsole" name="zconsole" />
137 138
138 139 <!-- Symlinks to create under /dev -->
139 140 <symlink source="console" target="zconsole" />
140 141 <symlink source="dtremote" target="/dev/null" />
141 142 <symlink source="msglog" target="zconsole" />
142 143 <symlink source="stderr" target="./fd/2" />
143 144 <symlink source="stdin" target="./fd/0" />
144 145 <symlink source="stdout" target="./fd/1" />
145 146 <symlink source="syscon" target="zconsole" />
146 147 <symlink source="sysmsg" target="zconsole" />
147 148 <symlink source="systty" target="zconsole" />
148 149
149 150 </platform>
↓ open down ↓ |
70 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX