2 .\" Copyright 2001, Sun Microsystems, Inc. All Rights Reserved.
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 MKDEVALLOC 1M "Oct 8, 2003"
8 mkdevalloc \- Make device_allocate entries
12 \fB/usr/sbin/mkdevalloc\fR
18 The \fBmkdevalloc\fR command writes to standard out a set of
19 \fBdevice_allocate\fR(4) entries describing the system's frame buffer, audio
20 and removable media devices.
23 The \fBmkdevalloc\fR command is used by the \fBinit.d\fR(4) scripts to create
24 or update the \fB/etc/security/device_allocate\fR file.
27 Entries are generated based on the device special files found in \fB/dev\fR.
28 For the different categories of devices, the \fBmkdevalloc\fR command checks
29 for the following files under \fB/dev\fR:
33 audio /dev/audio, /dev/audioctl, /dev/sound/...
34 tape /dev/rst*, /dev/nrst*, /dev/rmt/...
35 floppy /dev/diskette, /dev/fd*, /dev/rdiskette, /dev/rfd*
36 removable disk /dev/sr*, /dev/nsr*, /dev/dsk/c0t?d0s?, /dev/rdsk/c0t?d0s?
43 All entries set the \fIdevice-minimum\fR and \fIdevice-maximum\fR fields to the
44 hex representations of \fBADMIN_LOW\fR and \fBADMIN_HIGH\fR, respectively. The
45 \fIdevice-authorization\fR field is set to \fBsolaris.device.allocate\fR,
46 except for the \fBframebuffer\fR entry, where it is set to \fB*\fR. The
47 \fIdevice-name\fR, \fIdevice-type\fR and \fIdevice-clean\fR fields are set to
52 device-name device-type device-clean
54 audio audio audio audio_clean_wrapper
55 tape mag_tape_0,1,... st st_clean
56 floppy floppy_0,1,... fd disk_clean
57 removable disk cdrom_0,1,... sr disk_clean
58 frame buffer framebuffer fb /bin/true
65 See \fBattributes\fR(5) for descriptions of the following attributes:
73 ATTRIBUTE TYPE ATTRIBUTE VALUE
75 Interface Stability Obsolete
81 \fBallocate\fR(1), \fBbsmconv\fR(1M), \fBattributes\fR(5)
85 \fBmkdevalloc\fR might not be supported in a future release of the Solaris