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       --current, --self
67              gets the context from the current process
68
69       --current-exec, --self-exec
70              gets the exec context from the current process
71
72       --current-fs, --self-fs
73              gets the fscreate context from the current process
74
75       --parent
76              gets the context from the parent of the current process
77
78       --parent-exec
79              gets the exec context from the parent of the current process
80
81       --parent-fs
82              gets the fscreate context from the parent of the current process
83
84       Additional  argument  CONTEXT  may  be  provided and will be used if no
85       options have been specified to make secon get it's context from another
86       source.   If  that  argument  is  -  then the context will be read from
87       stdin.
88       If there is no arugment, secon will try reading a context  from  stdin,
89       if  that  is  not  a tty, otherwise secon will act as though --self had
90       been passed.
91
92       If none of --user, --role, --type, --level or  --mls-range  is  passed.
93       Then all of them will be output.
94

SEE ALSO

96       chcon (1)
97

AUTHORS

99       James Antill (james.antill@redhat.com)
100
101
102
103Security Enhanced Linux           April 2006                          SECON(1)
Impressum