xref: /illumos-gate/usr/src/lib/brand/ipkg/zone/platform.xml (revision d5b563f27eb78296f57dddced6755afe7445c4b9)
1<?xml version="1.0"?>
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) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
24 Copyright 2018 Nexenta Systems, Inc.
25 Copyright 2021 Joyent, Inc.
26
27 DO NOT EDIT THIS FILE.
28-->
29
30<!DOCTYPE platform PUBLIC "-//Sun Microsystems Inc//Zones Platform//EN"
31    "file:///usr/share/lib/xml/dtd/zone_platform.dtd.1">
32
33<platform name="ipkg" allow-exclusive-ip="true">
34
35	<!-- Global filesystems to mount when booting the zone -->
36	<global_mount special="/dev" directory="/dev" type="dev"
37	    opt="attrdir=%R/root/dev"/>
38
39	<!-- Local filesystems to mount when booting the zone -->
40	<mount special="/proc" directory="/proc" type="proc" />
41	<mount special="ctfs" directory="/system/contract" type="ctfs" />
42	<mount special="mnttab" directory="/etc/mnttab" type="mntfs" />
43	<mount special="objfs" directory="/system/object" type="objfs" />
44	<mount special="swap" directory="/etc/svc/volatile" type="tmpfs" />
45	<mount special="sharefs" directory="/etc/dfs/sharetab" type="sharefs" />
46
47	<!-- Devices to create under /dev -->
48	<device match="arp" />
49	<device match="bpf" />
50	<device match="conslog" />
51	<device match="cpu/self/cpuid" />
52	<device match="crypto" />
53	<device match="cryptoadm" />
54	<device match="dsk" />
55	<device match="dtrace/*" />
56	<device match="dtrace/provider/*" />
57	<device match="eventfd" />
58	<device match="fd" />
59	<device match="full" />
60	<device match="ipnet" />
61	<device match="kstat" />
62	<device match="lo0" />
63	<device match="lofictl" />
64	<device match="lofi" />
65	<device match="log" />
66	<device match="logindmux" />
67	<device match="nsmb" />
68	<device match="net/*" />
69	<device match="null" />
70	<device match="openprom" arch="sparc" />
71	<device match="poll" />
72	<device match="pool" />
73	<device match="ptmx" />
74	<device match="pts/*" />
75	<device match="random" />
76	<device match="rdsk" />
77	<device match="rlofi" />
78	<device match="rmt" />
79	<device match="sad/user" />
80	<device match="signalfd" />
81	<device match="smbsrv" />
82	<device match="smbsrv1" />
83	<device match="svvslo0" />
84	<device match="svvslo1" />
85	<device match="svvslo2" />
86	<device match="svvslo3" />
87	<device match="swap" />
88	<device match="sysevent" />
89	<device match="tcp" />
90	<device match="tcp6" />
91	<device match="term" />
92	<device match="ticlts" />
93	<device match="ticots" />
94	<device match="ticotsord" />
95	<device match="tty" />
96	<device match="udp" />
97	<device match="udp6" />
98	<device match="urandom" />
99	<device match="zero" />
100	<device match="zfs" />
101
102	<!-- Devices to create in exclusive IP zone only -->
103	<device match="dld" ip-type="exclusive" />
104	<device match="icmp" ip-type="exclusive" />
105	<device match="icmp6" ip-type="exclusive" />
106	<device match="ip" ip-type="exclusive" />
107	<device match="ip6" ip-type="exclusive" />
108	<device match="ipauth" ip-type="exclusive" />
109	<device match="ipf" ip-type="exclusive" />
110	<device match="ipl" ip-type="exclusive" />
111	<device match="iplookup" ip-type="exclusive" />
112	<device match="ipmpstub" ip-type="exclusive" />
113	<device match="ipnat" ip-type="exclusive" />
114	<device match="ipscan" ip-type="exclusive" />
115	<device match="ipsecah" ip-type="exclusive" />
116	<device match="ipsecesp" ip-type="exclusive" />
117	<device match="ipstate" ip-type="exclusive" />
118	<device match="ipsync" ip-type="exclusive" />
119	<device match="keysock" ip-type="exclusive" />
120	<device match="rawip" ip-type="exclusive" />
121	<device match="rawip6" ip-type="exclusive" />
122	<device match="rts" ip-type="exclusive" />
123	<device match="sad/admin" ip-type="exclusive" />
124	<device match="sctp" ip-type="exclusive" />
125	<device match="sctp6" ip-type="exclusive" />
126	<device match="spdsock" ip-type="exclusive" />
127	<device match="sppp" ip-type="exclusive" />
128	<device match="sppptun" ip-type="exclusive" />
129	<device match="vni" ip-type="exclusive" />
130
131	<!-- Renamed devices to create under /dev -->
132	<device match="zcons/%z/zoneconsole" name="zconsole" />
133
134	<!-- Symlinks to create under /dev -->
135	<symlink source="console" target="zconsole" />
136	<symlink source="dtremote" target="/dev/null" />
137	<symlink source="msglog" target="zconsole" />
138	<symlink source="stderr" target="./fd/2" />
139	<symlink source="stdin" target="./fd/0" />
140	<symlink source="stdout" target="./fd/1" />
141	<symlink source="syscon" target="zconsole" />
142	<symlink source="sysmsg" target="zconsole" />
143	<symlink source="systty" target="zconsole" />
144
145</platform>
146