Debian Codegraph @

policycoreutils/secon/secon.1

raw
1 .TH SECON "1" "April 2006" "Security Enhanced Linux" NSA
2 .SH NAME
3 secon \- See an SELinux context, from a file, program or user input.
4 .SH SYNOPSIS
5 .B secon
6 [\fB-hVurtscmPRfLp\fR]
7 [\fICONTEXT\fR]
8 .br
9 [\fB--file\fR]
10 \fIFILE\fR
11 .br
12 [\fB--link\fR]
13 \fIFILE\fR
14 .br
15 [\fB--pid\fR]
16 \fIPID\fR
17 .SH DESCRIPTION
18 .PP
19 See a part of a context. The context is taken from a file, pid, user input or
20 the context in which
21 .B secon
22 is originally executed.
23 .TP
24 \fB\-V\fR, \fB\-\-version\fR
25 shows the current version of secon
26 .TP
27 \fB\-h\fR, \fB\-\-help\fR
28 shows the usage information for secon
29 .TP
30 \fB\-P\fR, \fB\-\-prompt\fR
31 outputs data in a format suitable for a prompt
32 .TP
33 \fB\-C\fR, \fB\-\-color\fR
34 outputs data with the associated ANSI color codes (requires \-P)
35 .TP
36 \fB\-u\fR, \fB\-\-user\fR
37 show the user of the security context
38 .TP
39 \fB\-r\fR, \fB\-\-role\fR
40 show the role of the security context
41 .TP
42 \fB\-t\fR, \fB\-\-type\fR
43 show the type of the security context
44 .TP
45 \fB\-s\fR, \fB\-\-sensitivity\fR
46 show the sensitivity level of the security context
47 .TP
48 \fB\-c\fR, \fB\-\-clearance\fR
49 show the clearance level of the security context
50 .TP
51 \fB\-m\fR, \fB\-\-mls-range\fR
52 show the sensitivity level and clearance, as a range, of the security context
53 .TP
54 \fB\-R\fR, \fB\-\-raw\fR
55 outputs the sensitivity level and clearance in an untranslated format.
56 .TP
57 \fB\-f\fR, \fB\-\-file\fR
58 gets the context from the specified file FILE
59 .TP
60 \fB\-L\fR, \fB\-\-link\fR
61 gets the context from the specified file FILE (doesn't follow symlinks)
62 .TP
63 \fB\-p\fR, \fB\-\-pid\fR
64 gets the context from the specified process PID
65 .TP
66 \fB\-\-pid\-exec\fR
67 gets the exec context from the specified process PID
68 .TP
69 \fB\-\-pid\-fs\fR
70 gets the fscreate context from the specified process PID
71 .TP
72 \fB\-\-pid\-key\fR
73 gets the key context from the specified process PID
74 .TP
75 \fB\-\-current\fR, \fB\-\-self\fR
76 gets the context from the current process
77 .TP
78 \fB\-\-current\-exec\fR, \fB\-\-self\-exec\fR
79 gets the exec context from the current process
80 .TP
81 \fB\-\-current\-fs\fR, \fB\-\-self\-fs\fR
82 gets the fscreate context from the current process
83 .TP
84 \fB\-\-current\-key\fR, \fB\-\-self\-key\fR
85 gets the key context from the current process
86 .TP
87 \fB\-\-parent\fR
88 gets the context from the parent of the current process
89 .TP
90 \fB\-\-parent\-exec\fR
91 gets the exec context from the parent of the current process
92 .TP
93 \fB\-\-parent\-fs\fR
94 gets the fscreate context from the parent of the current process
95 .TP
96 \fB\-\-parent\-key\fR
97 gets the key context from the parent of the current process
98 .PP
99 Additional argument
100 .I CONTEXT
101 may be provided and will be used if no options have been specified to make
102 .B secon
103 get its context from another source.
104 If that argument is
105 .I -
106 then the context will be read from stdin.
107 .br
108 If there is no argument,
109 .B secon
110 will try reading a context from stdin, if that is not a tty, otherwise
111 .B secon
112 will act as though \fB\-\-self\fR had been passed.
113 .PP
114 If none of \fB\-\-user\fR, \fB\-\-role\fR, \fB\-\-type\fR, \fB\-\-level\fR or
115 \fB\-\-mls\-range\fR is passed.
116 Then all of them will be output.
117 .PP
118 .SH SEE ALSO
119 .BR chcon (1)
120 .SH AUTHORS
121 .nf
122 James Antill ([email protected])