1SECON(1)                              NSA                             SECON(1)
2
3
4

NAME

6       secon - See an SELinux context, from a file, program or user input.
7

SYNOPSIS

9       secon [-hVurtscmPRfLp] [CONTEXT]
10       [--file] FILE
11       [--link] FILE
12       [--pid] PID
13

DESCRIPTION

15       See  a  part  of a context. The context is taken from a file, pid, user
16       input or the context in which secon is originally executed.
17
18       -V, --version
19              shows the current version of secon
20
21       -h, --help
22              shows the usage information for secon
23
24       -P, --prompt
25              outputs data in a format suitable for a prompt
26
27       -u, --user
28              show the user of the security context
29
30       -r, --role
31              show the role of the security context
32
33       -t, --type
34              show the type of the security context
35
36       -s, --sensitivity
37              show the sensitivity level of the security context
38
39       -c, --clearance
40              show the clearance level of the security context
41
42       -m, --mls-range
43              show the sensitivity level and clearance, as  a  range,  of  the
44              security context
45
46       -R, --raw
47              outputs   the sensitivity level and clearance in an untranslated
48              format.
49
50       -f, --file
51              gets the context from the specified file FILE
52
53       -L, --link
54              gets the context from the specified file  FILE  (doesn't  follow
55              symlinks)
56
57       -p, --pid
58              gets the context from the specified process PID
59
60       --pid-exec
61              gets the exec context from the specified process PID
62
63       --pid-fs
64              gets the fscreate context from the specified process PID
65
66       --pid-key
67              gets the key context from the specified process PID
68
69       --current, --self
70              gets the context from the current process
71
72       --current-exec, --self-exec
73              gets the exec context from the current process
74
75       --current-fs, --self-fs
76              gets the fscreate context from the current process
77
78       --current-key, --self-key
79              gets the key context from the current process
80
81       --parent
82              gets the context from the parent of the current process
83
84       --parent-exec
85              gets the exec context from the parent of the current process
86
87       --parent-fs
88              gets the fscreate context from the parent of the current process
89
90       --parent-key
91              gets the key context from the parent of the current process
92
93       Additional  argument  CONTEXT  may  be  provided and will be used if no
94       options have been specified to make secon get it's context from another
95       source.   If  that  argument  is  -  then the context will be read from
96       stdin.
97       If there is no arugment, secon will try reading a context  from  stdin,
98       if  that  is  not  a tty, otherwise secon will act as though --self had
99       been passed.
100
101       If none of --user, --role, --type, --level or  --mls-range  is  passed.
102       Then all of them will be output.
103

SEE ALSO

105       chcon (1)
106

AUTHORS

108       James Antill (james.antill@redhat.com)
109
110
111
112Security Enhanced Linux           April 2006                          SECON(1)
Impressum