2 .\" Copyright (c) 2008, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DEVICE_ALLOCATE 4 "Mar 6, 2017"
8 device_allocate \- device_allocate file
12 \fB/etc/security/device_allocate\fR
17 The \fBdevice_allocate\fR file is an \fBASCII\fR file that resides in the
18 \fB/etc/security\fR directory. It contains mandatory access control information
19 about each physical device. Each device is represented by a one- line entry of
23 \fIdevice-name\fR;\fIdevice-type\fR;reserved1;reserved2;\fIauths\fR;\fIdevice-e
31 \fB\fIdevice-name\fR\fR
35 Represents an arbitrary \fBASCII\fR string naming the physical device. This
36 field contains no embedded white space or non-printable characters.
42 \fB\fIdevice-type\fR\fR
46 Represents an arbitrary \fBASCII\fR string naming the generic device type. This
47 field identifies and groups together devices of like type. This field contains
48 no embedded white space or non-printable characters. The following types of
49 devices are currently managed by the system: audio, \fBsr\fR (represents CDROM
50 drives), \fBfd\fR (represents floppy drives), \fBst\fR (represents tape
51 drives), \fBrmdisk\fR (removable media devices).
61 On systems configured with Trusted Extensions, this field stores a
62 colon-separated (\fB:\fR) list of key-value pairs that describe device
63 allocation attributes used in Trusted Extensions. Zero or more keys can be
64 specified. The following keys are currently interpreted by Trusted Extensions
73 Specifies the minimum label at which device can be allocated. Default value is
84 Specifies the maximum label at which device can be allocated. Default value is
95 Specifies the name of the zone in which device is currently allocated.
105 Specifies a logical grouping of devices. For example, all Sun Ray devices of
106 all device types. There is no default class.
116 Specifies the X display name. This is used to identify devices associated with
117 that X session. There is no default \fBxdpy\fR value.
125 \fB\fBreserved2\fR\fR
129 Represents a field reserved for future use.
139 Represents a field that contains a comma-separated list of authorizations
140 required to allocate the device, an asterisk (\fB*\fR) to indicate that the
141 device is \fInot\fR allocatable, or an '\fB@\fR' symbol to indicate that no
142 explicit authorization is needed to allocate the device. The default
143 authorization is \fBsolaris.device.allocate\fR. See \fBauths\fR(1).
149 \fB\fIdevice-exec\fR\fR
153 The physical device's data clean program to be run any time the device is acted
154 on by \fBallocate\fR(1). This ensures that unmanaged data does not remain in
155 the physical device between uses. This field contains the filename of a program
156 in \fB/etc/security/lib\fR or the full pathname of a cleanup script provided by
157 the system administrator.
160 .SS "Notes on \fBdevice_allocate\fR"
162 The \fBdevice_allocate\fR file is an ASCII file that resides in the
163 \fB/etc/security\fR directory.
166 Lines in \fBdevice_allocate\fR can end with a `\fB\e\fR\&' to continue an entry
170 Comments can also be included. A `\fB#\fR' makes a comment of all further text
171 until the next NEWLINE not immediately preceded by a `\fB\e\fR\&'.
174 White space is allowed in any field.
177 The \fBdevice_allocate\fR file must be created by the system administrator
178 before device allocation is enabled.
181 The \fBdevice_allocate\fR file is owned by root, with a group of \fBsys\fR, and
185 \fBExample 1 \fRDeclaring an Allocatable Device
188 Declare that physical device \fBst0\fR is a type \fBst\fR. \fBst\fR is
189 allocatable, and the script used to clean the device after running
190 \fBdeallocate\fR(1) is named \fB/etc/security/lib/st_clean\fR.
200 solaris.device.allocate;\e
201 /etc/security/lib/st_clean
207 \fBExample 2 \fRDeclaring an Allocatable Device with Authorizations
210 Declare that physical device \fBfd0\fR is of type \fBfd\fR. \fBfd\fR is
211 allocatable by users with the \fBsolaris.device.allocate\fR authorization, and
212 the script used to clean the device after running \fBdeallocate\fR(1) is named
213 \fB/etc/security/lib/fd_clean\fR.
223 solaris.device.allocate;\e
224 /etc/security/lib/fd_clean
231 Making a device allocatable means that you need to allocate and deallocate it
232 to use it (with \fBallocate\fR(1) and \fBdeallocate\fR(1)). If a device is not
233 allocatable, there is an asterisk (\fB*\fR) in the \fIauths\fR field, and no
234 one can use the device.
238 \fB\fB/etc/security/device_allocate\fR\fR
242 Contains list of allocatable devices
247 See \fBattributes\fR(5) for descriptions of the following attributes:
255 ATTRIBUTE TYPE ATTRIBUTE VALUE
257 Interface Stability Uncommitted
262 \fBauths\fR(1), \fBallocate\fR(1), \fBdeallocate\fR(1),
263 \fBlist_devices\fR(1), \fBauth_attr\fR(4), \fBattributes\fR(5)
266 On systems configured with Trusted Extensions, the functionality is enabled by
267 default. On such systems, the \fBdevice_allocate\fR file is updated
268 automatically by the system.