2 .\" Copyright (c) 2008, 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 ALLOCATE 1 "Mar 6, 2017"
8 allocate \- device allocation
12 \fBallocate\fR [\fB-s\fR] [\fB-w\fR] [\fB-F\fR] [\fB-U\fR \fIuname\fR] [\fB-z\fR \fIzonename\fR] \fIdevice\fR
17 \fBallocate\fR [\fB-s\fR] [\fB-w\fR] [\fB-F\fR] [\fB-U\fR \fIuname\fR] [\fB-z\fR \fIzonename\fR] \fB-g\fR \fIdev-type\fR
22 The \fBallocate\fR utility manages the ownership of devices through its
23 allocation mechanism. It ensures that each device is used by only one qualified
27 The \fIdevice\fR argument specifies the device to be manipulated. To preserve
28 the integrity of the device's owner, the allocate operation is executed on all
29 the device special files associated with that device.
32 The default allocate operation allocates the device special files associated
33 with \fIdevice\fR to the \fBuid\fR of the current process.
36 Only authorized users may allocate a device. The required authorizations are
37 specified in \fBdevice_allocate\fR(4).
40 The following options are supported:
44 \fB\fB-F\fR \fIdevice\fR\fR
47 Force allocates either free or pre-allocated devices. This option is often used
48 with the \fB-U\fR option to allocate/reallocate devices to a specific user.
49 Only those users that have \fBsolaris.device.revoke\fR authorization are
50 allowed to use this option.
56 \fB\fB-g\fR \fIdev\(mitype\fR\fR
59 Allocates devices with a device\(mitype matching \fIdev\(mitype\fR. The
60 \fIdev\(mitype\fR argument specifies the device type to be operated on.
69 Silent. Suppresses any diagnostic output.
75 \fB\fB-U\fR \fIuname\fR\fR
78 Uses the user ID \fIuname\fR instead of the user ID of the current process when
79 performing the allocate operation. Only a user with the
80 \fBsolaris.device.revoke\fR authorization is permitted to use this option.
85 The following operands are supported:
92 Specifies the name of the device to be allocated.
97 The following exit values are returned:
104 Successful completion.
113 No entry for the specified device.
119 \fB\fIother value\fR\fR
127 \fB/etc/security/device_allocate\fR
130 \fB/etc/security/device_maps\fR
133 \fB/etc/security/dev/*\fR
136 \fB/etc/security/lib/*\fR
139 See \fBattributes\fR(5) for descriptions of the following attributes:
147 ATTRIBUTE TYPE ATTRIBUTE VALUE
149 Interface Stability See below.
154 The invocation is Uncommitted. The options are Uncommitted. The output is
158 \fBdeallocate\fR(1), \fBlist_devices\fR(1),
159 \fBdminfo\fR(8), \fBmkdevalloc\fR(8), \fBmkdevmaps\fR(8),
160 \fBdevice_allocate\fR(4), \fBdevice_maps\fR(4), \fBattributes\fR(5)
163 \fB/etc/security/dev\fR, \fBmkdevalloc\fR(8), and \fBmkdevmaps\fR(8) might
164 not be supported in a future release of the Solaris Operating Environment.