1kudzu_selinux(8) SELinux Policy kudzu kudzu_selinux(8)
2
3
4
6 kudzu_selinux - Security Enhanced Linux Policy for the kudzu processes
7
9 Security-Enhanced Linux secures the kudzu processes via flexible manda‐
10 tory access control.
11
12 The kudzu processes execute with the kudzu_t SELinux type. You can
13 check if you have these processes running by executing the ps command
14 with the -Z qualifier.
15
16 For example:
17
18 ps -eZ | grep kudzu_t
19
20
21
23 The kudzu_t SELinux type can be entered via the file_type, unlabeled_t,
24 proc_type, filesystem_type, mtrr_device_t, kudzu_exec_t, sysctl_type
25 file types.
26
27 The default entrypoint paths for the kudzu_t domain are the following:
28
29 all files on the system, /dev/cpu/mtrr, /sbin/kudzu, /sbin/kmodule,
30 /usr/sbin/kudzu
31
33 SELinux defines process types (domains) for each process running on the
34 system
35
36 You can see the context of a process using the -Z option to ps
37
38 Policy governs the access confined processes have to files. SELinux
39 kudzu policy is very flexible allowing users to setup their kudzu pro‐
40 cesses in as secure a method as possible.
41
42 The following process types are defined for kudzu:
43
44 kudzu_t
45
46 Note: semanage permissive -a kudzu_t can be used to make the process
47 type kudzu_t permissive. SELinux does not deny access to permissive
48 process types, but the AVC (SELinux denials) messages are still gener‐
49 ated.
50
51
53 SELinux policy is customizable based on least access required. kudzu
54 policy is extremely flexible and has several booleans that allow you to
55 manipulate the policy and run kudzu with the tightest access possible.
56
57
58
59 If you want to allow all daemons the ability to read/write terminals,
60 you must turn on the allow_daemons_use_tty boolean. Disabled by
61 default.
62
63 setsebool -P allow_daemons_use_tty 1
64
65
66
67 If you want to allow all domains to use other domains file descriptors,
68 you must turn on the allow_domain_fd_use boolean. Enabled by default.
69
70 setsebool -P allow_domain_fd_use 1
71
72
73
74 If you want to allow unconfined executables to make their heap memory
75 executable. Doing this is a really bad idea. Probably indicates a
76 badly coded executable, but could indicate an attack. This executable
77 should be reported in bugzilla, you must turn on the allow_execheap
78 boolean. Disabled by default.
79
80 setsebool -P allow_execheap 1
81
82
83
84 If you want to allow unconfined executables to map a memory region as
85 both executable and writable, this is dangerous and the executable
86 should be reported in bugzilla), you must turn on the allow_execmem
87 boolean. Enabled by default.
88
89 setsebool -P allow_execmem 1
90
91
92
93 If you want to allow all unconfined executables to use libraries
94 requiring text relocation that are not labeled textrel_shlib_t), you
95 must turn on the allow_execmod boolean. Enabled by default.
96
97 setsebool -P allow_execmod 1
98
99
100
101 If you want to allow unconfined executables to make their stack exe‐
102 cutable. This should never, ever be necessary. Probably indicates a
103 badly coded executable, but could indicate an attack. This executable
104 should be reported in bugzilla), you must turn on the allow_execstack
105 boolean. Enabled by default.
106
107 setsebool -P allow_execstack 1
108
109
110
111 If you want to allow sysadm to debug or ptrace all processes, you must
112 turn on the allow_ptrace boolean. Disabled by default.
113
114 setsebool -P allow_ptrace 1
115
116
117
118 If you want to allow all domains to have the kernel load modules, you
119 must turn on the domain_kernel_load_modules boolean. Disabled by
120 default.
121
122 setsebool -P domain_kernel_load_modules 1
123
124
125
126 If you want to allow all domains to execute in fips_mode, you must turn
127 on the fips_mode boolean. Enabled by default.
128
129 setsebool -P fips_mode 1
130
131
132
133 If you want to enable reading of urandom for all domains, you must turn
134 on the global_ssp boolean. Disabled by default.
135
136 setsebool -P global_ssp 1
137
138
139
140 If you want to enable support for upstart as the init program, you must
141 turn on the init_upstart boolean. Enabled by default.
142
143 setsebool -P init_upstart 1
144
145
146
147 If you want to allow certain domains to map low memory in the kernel,
148 you must turn on the mmap_low_allowed boolean. Disabled by default.
149
150 setsebool -P mmap_low_allowed 1
151
152
153
154 If you want to disable transitions to insmod, you must turn on the
155 secure_mode_insmod boolean. Disabled by default.
156
157 setsebool -P secure_mode_insmod 1
158
159
160
161 If you want to boolean to determine whether the system permits loading
162 policy, setting enforcing mode, and changing boolean values. Set this
163 to true and you have to reboot to set it back, you must turn on the
164 secure_mode_policyload boolean. Disabled by default.
165
166 setsebool -P secure_mode_policyload 1
167
168
169
170 If you want to support X userspace object manager, you must turn on the
171 xserver_object_manager boolean. Disabled by default.
172
173 setsebool -P xserver_object_manager 1
174
175
176
178 The SELinux process type kudzu_t can manage files labeled with the fol‐
179 lowing file types. The paths listed are the default paths for these
180 file types. Note the processes UID still need to have DAC permissions.
181
182 file_type
183
184 all files on the system
185
186
188 SELinux requires files to have an extended attribute to define the file
189 type.
190
191 You can see the context of a file using the -Z option to ls
192
193 Policy governs the access confined processes have to these files.
194 SELinux kudzu policy is very flexible allowing users to setup their
195 kudzu processes in as secure a method as possible.
196
197 STANDARD FILE CONTEXT
198
199 SELinux defines the file context types for the kudzu, if you wanted to
200 store files with these types in a diffent paths, you need to execute
201 the semanage command to sepecify alternate labeling and then use
202 restorecon to put the labels on disk.
203
204 semanage fcontext -a -t kudzu_var_run_t '/srv/mykudzu_content(/.*)?'
205 restorecon -R -v /srv/mykudzu_content
206
207 Note: SELinux often uses regular expressions to specify labels that
208 match multiple files.
209
210 The following file types are defined for kudzu:
211
212
213
214 kudzu_exec_t
215
216 - Set files with the kudzu_exec_t type, if you want to transition an
217 executable to the kudzu_t domain.
218
219
220 Paths:
221 /sbin/kudzu, /sbin/kmodule, /usr/sbin/kudzu
222
223
224 kudzu_tmp_t
225
226 - Set files with the kudzu_tmp_t type, if you want to store kudzu tem‐
227 porary files in the /tmp directories.
228
229
230
231 kudzu_var_run_t
232
233 - Set files with the kudzu_var_run_t type, if you want to store the
234 kudzu files under the /run or /var/run directory.
235
236
237
238 Note: File context can be temporarily modified with the chcon command.
239 If you want to permanently change the file context you need to use the
240 semanage fcontext command. This will modify the SELinux labeling data‐
241 base. You will need to use restorecon to apply the labels.
242
243
245 semanage fcontext can also be used to manipulate default file context
246 mappings.
247
248 semanage permissive can also be used to manipulate whether or not a
249 process type is permissive.
250
251 semanage module can also be used to enable/disable/install/remove pol‐
252 icy modules.
253
254 semanage boolean can also be used to manipulate the booleans
255
256
257 system-config-selinux is a GUI tool available to customize SELinux pol‐
258 icy settings.
259
260
262 This manual page was auto-generated using sepolicy manpage .
263
264
266 selinux(8), kudzu(8), semanage(8), restorecon(8), chcon(1) , setse‐
267 bool(8)
268
269
270
271kudzu 15-06-03 kudzu_selinux(8)