summaryrefslogtreecommitdiff
path: root/static/unix-v10/man1/getlab.1
blob: a740e23df553b826d7dd501b261633dcc59d3436 (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
.TH GETLAB 1 
.CT 1 shell
.SH NAME
getlab \- print security labels of files and processes
.SH SYNOPSIS
.B getlab
[
.B -d
]
[
.I file ...
]
.SH DESCRIPTION
If there is a
.I file
argument,
.I getlab
prints, in the style of
.IR labtoa (3),
the security labels of the named files.
Otherwise,
.I getlab
prints the security label of the process and the process ceiling,
The option is
.TP
.B -d
Also print labels of all open file descriptors.
.PP
If a (character special)
.I file
can be opened, and the labels of the file and the file descriptor
differ, both are printed.
.SH EXAMPLES
.TP
.B getlab /dev/stdin
Print the labels (file system entry and file
descriptor) of the standard input.
.TP
.B drop getlab -d
Print the process label,
preventing the open-file check and the ceiling-label
check (see
.IR getplab (2))
from raising the
process label.
.SH SEE ALSO
.IR stat (1),
.IR getflab (2),
.IR getplab (2)