summaryrefslogtreecommitdiff
path: root/usr/src/man/man1m/dminfo.1m
blob: 41f28a9c22ac24330692c9bdcf10f7febf7b6e1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
'\" te
.\" Copyright (c) 1993, Sun Microsystems, Inc.
.\" 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.
.\" 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.
.\" 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]
.TH DMINFO 1M "Mar 6, 2017"
.SH NAME
dminfo \- report information about a device entry in a device maps file
.SH SYNOPSIS
.LP
.nf
\fBdminfo\fR [\fB-v\fR] [\fB-a\fR] [\fB-f\fR \fIpathname\fR]
.fi

.LP
.nf
\fBdminfo\fR [\fB-v\fR] [\fB-a\fR] [\fB-f\fR \fIpathname\fR] \fB-n\fR \fIdev\fR \fB-\fIname\fR\fR...
.fi

.LP
.nf
\fBdminfo\fR [\fB-v\fR] [\fB-a\fR] [\fB-f\fR \fIpathname\fR] \fB-d\fR \fIdev\fR \fB-\fIpath\fR\fR...
.fi

.LP
.nf
\fBdminfo\fR [\fB-v\fR] [\fB-a\fR] [\fB-f\fR \fIpathname\fR] \fB-t\fR \fIdev\fR \fB-\fItype\fR\fR...
.fi

.LP
.nf
\fBdminfo\fR [\fB-v\fR] [\fB-f\fR \fIpathname\fR] \fB-u\fR \fIdm\fR -\fIentry\fR
.fi

.SH DESCRIPTION
.LP
\fBdminfo\fR reports and updates information about the \fBdevice_maps\fR(4)
file.
.SH OPTIONS
.LP
The following options are supported
.sp
.ne 2
.na
\fB\fB-a\fR\fR
.ad
.RS 18n
Succeed if any of the requested entries are found. If used with \fB-v\fR, all
entries that match the requested case(s) are printed.
.RE

.sp
.ne 2
.na
\fB\fB-d\fR \fIdev\(mipath\fR\fR
.ad
.RS 18n
Search by \fIdev\(mipath\fR. Search \fBdevice_maps\fR(4) for a device special
pathname in the \fIdevice_list\fR field matching the \fIdev\(mipath\fR
argument. This option cannot be used with \fB-n\fR, \fB-t\fR or \fB-u\fR.
.RE

.sp
.ne 2
.na
\fB\fB-f\fR \fIpathname\fR\fR
.ad
.RS 18n
Use a device_maps file with \fIpathname\fR instead of
\fB/etc/security/device_maps\fR.
.RE

.sp
.ne 2
.na
\fB\fB-n\fR \fIdev\(miname\fR\fR
.ad
.RS 18n
Search by \fIdev\(miname\fR. Search \fBdevice_maps\fR(4) for a
\fIdevice_name\fR field matching \fIdev\(miname\fR. This option cannot be used
with \fB-d\fR, \fB-t\fR or \fB-u\fR.
.RE

.sp
.ne 2
.na
\fB\fB-t\fR \fIdev\(mitype\fR\fR
.ad
.RS 18n
Search by \fIdev\(mitype\fR. Search \fBdevice_maps\fR(4) for a
\fIdevice_type\fR field matching the given \fIdev\(mitype\fR. This option
cannot be used with \fB-d\fR, \fB-n\fR or \fB-u\fR.
.RE

.sp
.ne 2
.na
\fB\fB-u\fR \fIdm\(mientry\fR\fR
.ad
.RS 18n
Update the \fBdevice_maps\fR(4) file. This option is provided to add entries to
the \fBdevice_maps\fR(4) file. The \fIdm\(mientry\fR must be a complete
\fBdevice_maps\fR(4) file entry. The \fIdm\(mientry\fR has fields, as in the
\fBdevice_maps\fR file. It uses the colon (\fB:\fR) as a field separator, and
white space as the \fIdevice_list\fR subfield separators. The \fIdm\(mientry\fR
is not made if any fields are missing, or if the \fIdm\(mientry\fR would be a
duplicate. The default device maps file can be updated only by the super user.
.RE

.sp
.ne 2
.na
\fB\fB-v\fR\fR
.ad
.RS 18n
Verbose. Print the requested entry or entries, one line per entry, on the
standard output. If no entries are specified, all are printed.
.RE

.SH EXIT STATUS
.ne 2
.na
\fB0\fR
.ad
.RS 5n
Successful completion.
.RE

.sp
.ne 2
.na
\fB1\fR
.ad
.RS 5n
Request failed.
.RE

.sp
.ne 2
.na
\fB2\fR
.ad
.RS 5n
Incorrect syntax.
.RE

.SH FILES
.LP
\fB/etc/security/device_maps\fR
.SH SEE ALSO
.LP
\fBdevice_maps\fR(4), \fBattributes\fR(5)