2 .\" Copyright (c) 2007, 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 DEVICE_CLEAN 5 "Jun 14, 2007"
8 device_clean \- device clean programs
12 Each allocatable device has a device clean program associated with it. Device
13 clean programs are invoked by \fBdeallocate\fR(1) to clean device states,
14 registers, and any residual information in the device before the device is
15 allocated to a user. Such cleaning is required by the object reuse policy.
18 Use \fBlist_devices\fR(1) to obtain the names and types of allocatable devices
19 as well as the cleaning program and the authorizations that are associated with
23 On a system configured with Trusted Extensions, device clean programs are also
24 invoked by \fBallocate\fR(1), in which case the program can optionally mount
25 appropriate media for the caller.
28 The following device clean programs reside in \fB/etc/security/lib\fR.
32 \fB\fBaudio_clean\fR\fR
67 On a system configured with Trusted Extensions, the following additional
68 cleaning programs and wrappers are available.
72 \fB\fBdisk_clean\fR\fR
75 floppy, CD-ROM, and other removable media devices. This program mounts the
76 device during the execution of \fBallocate\fR, if required.
82 \fB\fBaudio_clean_wrapper\fR\fR
85 wrapper to make audio_clean work with CDE
91 \fB\fBwdwwrapper\fR\fR
94 wrapper to make other cleaning programs work with CDE
103 CDE dialog boxes for cleaning programs
108 Administrators can create device clean programs for their sites. These programs
109 must adhere to the syntax described below.
113 /etc/security/lib/\fIdevice-clean-program\fR [\(mii | \(mif | \(mis | \(miI] \e
114 \(mim \fImode\fR \(miu \fIuser-name\fR \(miz \fIzone-name\fR \(mip \fIzone-path\fR \fIdevice-name\fR
125 \fB\fIdevice-name\fR\fR
128 The name of the device that is to be cleaned. Use \fBlist_devices\fR to obtain
129 the list of allocatable devices.
138 Invoke boot-time initialization.
147 Force cleanup by the administrator.
156 Invoke standard cleanup by the user.
165 Same as \fB-i\fR, with no error or warning.
170 The following options are supported only when the system is configured with
175 \fB\fB-m\fR \fImode\fR\fR
178 Specify the mode in which the clean program is invoked. Valid values are allo-
179 cate and deallocate. The default mode is allocate.
185 \fB\fB-u\fR \fIuser-name\fR\fR
188 Specify the name of user who executes the device clean program. The default
195 \fB\fB-z\fR \fIzone-name\fR\fR
198 Specify the name of the zone in which the device is to be allocated or
199 deallocated. The default zone is the global zone.
205 \fB\fB-p\fR \fIzone-path\fR\fR
208 Establish the root path of the zone that is specified by \fIzone-name\fR.
215 The following exit values are returned:
223 Successful completion.
233 An error. Caller can place device in error state.
243 A system error. Caller can place device in error state.
248 On a system configured with Trusted Extensions, the following additional exit
257 Mounting of device failed. Caller shall not place device in error state.
267 Mounting of device succeeded.
274 \fB\fB/etc/security/lib/*\fR\fR
277 device clean programs
283 See \fBattributes\fR(5) for descriptions of the following attributes:
291 ATTRIBUTE TYPE ATTRIBUTE VALUE
293 Interface Stability See below.
298 The Invocation is Uncommitted. The Output is Not-an-interface.
302 \fBallocate\fR(1), \fBdeallocate\fR(1), \fBlist_devices\fR(1),
306 \fISystem Administration Guide: Security Services\fR