1seinfo(1) General Commands Manual seinfo(1)
2
3
4
6 seinfo - SELinux policy query tool
7
9 seinfo [OPTIONS] [EXPRESSION] [POLICY ...]
10
12 seinfo allows the user to query the components of a SELinux policy.
13
15 seinfo supports loading a SELinux policy in one of four formats.
16
17 source A single text file containing policy source for versions 12
18 through 21. This file is usually named policy.conf.
19
20 binary A single file containing a monolithic kernel binary policy for
21 versions 15 through 21. This file is usually named by version -
22 for example, policy.20.
23
24 modular
25 A list of policy packages each containing a loadable policy mod‐
26 ule. The first module listed must be a base module.
27
28 policy list
29 A single text file containing all the information needed to load
30 a policy, usually exported by SETools graphical utilities.
31
32 If no policy file is provided, seinfo will search for the system
33 default policy: checking first for a source policy, next for a binary
34 policy matching the running kernel's preferred version, and finally for
35 the highest version that can be found. If no policy can be found,
36 seinfo will print an error message and exit.
37
39 One or more of the following component types can be queried. Each
40 option may only be specified once. If an option is provided multiple
41 times, the last instance will be used. Some components support the -x
42 flag to print expanded information about that component; if a particu‐
43 lar component specified does not support expanded information, the flag
44 will be ignored for that component (see -x below). If no expressions
45 are provided, policy statistics will be printed (see --stats below).
46
47 -c[NAME], --class[=NAME]
48 Print a list of object classes or, if NAME is provided, print
49 the object class NAME. With -x, print a list of permissions for
50 each displayed object class.
51
52 --sensitivity[=NAME]
53 Print a list of sensitivities or, if NAME is provided, print the
54 sensitivity NAME. With -x, print the corresponding level state‐
55 ment for each displayed sensitivity.
56
57 --category[=NAME]
58 Print a list of categories or, if NAME is provided, print the
59 category NAME. With -x, print a list of sensitivities with
60 which each displayed category may be associated.
61
62 -t[NAME], --type[=NAME]
63 Print a list of types (not including aliases or attributes) or,
64 if NAME is provided, print the type NAME. With -x, print a list
65 of attributes which include each displayed type.
66
67 -a[NAME], --attribute[=NAME]
68 Print a list of type attributes or, if NAME is provided, print
69 the attribute NAME. With -x, print a list of types assigned to
70 each displayed attribute.
71
72 -r[NAME], --role[=NAME]
73 Print a list of roles or, if NAME is provided, print the role
74 NAME. With -x, print a list of types assigned to each displayed
75 role.
76
77 -u[NAME], --user[=NAME]
78 Print a list of users or, if NAME is provided, print the user
79 NAME. With -x, print a list of roles assigned to each displayed
80 user.
81
82 -b[NAME], --bool[=NAME]
83 Print a list of conditional booleans or, if NAME is provided,
84 print the boolean NAME. With -x, print the default state of
85 each displayed conditional boolean.
86
87 --initialsid[=NAME]
88 Print a list of initial SIDs or, if NAME is provided, print the
89 initial SID NAME. With -x, print the context assigned to each
90 displayed SID.
91
92 --fs_use[=TYPE]
93 Print a list of fs_use statements or, if TYPE is provided, print
94 the statement for filesystem TYPE. There is no expanded infor‐
95 mation for this component.
96
97 --genfscon[=TYPE]
98 Print a list of genfscon statements or, if TYPE is provided,
99 print the statement for the filesystem TYPE. There is no
100 expanded information for this component.
101
102 --netifcon[=NAME]
103 Print a list of netif contexts or, if NAME is provided, print
104 the statement for interface NAME. There is no expanded informa‐
105 tion for this component.
106
107 --nodecon[=ADDR]
108 Print a list of node contexts or, if ADDR is provided, print the
109 statement for the node with address ADDR. There is no expanded
110 information for this component.
111
112 --portcon[=PORT]
113 Print a list of port contexts or, if PORT is provided, print the
114 statement for port PORT. There is no expanded information for
115 this component.
116
117 --protocol=PROTO
118 Print only portcon statements for the protocol PROTO. This
119 option is ignored if portcon statements are not printed or if no
120 statement exists for the requested port.
121
122 --all Print all components.
123
125 -x, --expand
126 Print additional details for each component matching the expres‐
127 sion. These details include the types assigned to an attribute
128 or role and the permissions for an object class. This option is
129 not available for all component types; see the description of
130 each component for the details this option will provide.
131
132 --stats
133 Print policy statistics including policy type and version infor‐
134 mation and counts of all components and rules.
135
136 -h, --help
137 Print help information and exit.
138
139 -V, --version
140 Print version information and exit.
141
143 This manual page was written by Jeremy A. Mowery <jmowery@tresys.com>.
144
146 Copyright(C) 2003-2007 Tresys Technology, LLC
147
149 Please report bugs via an email to setools-bugs@tresys.com.
150
152 sesearch(1), apol(1)
153
154
155
156 seinfo(1)