1bacula_selinux(8) SELinux Policy bacula bacula_selinux(8)
2
3
4
6 bacula_selinux - Security Enhanced Linux Policy for the bacula pro‐
7 cesses
8
10 Security-Enhanced Linux secures the bacula processes via flexible
11 mandatory access control.
12
13 The bacula processes execute with the bacula_t SELinux type. You can
14 check if you have these processes running by executing the ps command
15 with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep bacula_t
20
21
22
24 The bacula_t SELinux type can be entered via the bacula_exec_t file
25 type.
26
27 The default entrypoint paths for the bacula_t domain are the following:
28
29 /usr/sbin/bacula.*
30
32 SELinux defines process types (domains) for each process running on the
33 system
34
35 You can see the context of a process using the -Z option to ps
36
37 Policy governs the access confined processes have to files. SELinux
38 bacula policy is very flexible allowing users to setup their bacula
39 processes in as secure a method as possible.
40
41 The following process types are defined for bacula:
42
43 bacula_admin_t, bacula_t, bacula_unconfined_script_t
44
45 Note: semanage permissive -a bacula_t can be used to make the process
46 type bacula_t permissive. SELinux does not deny access to permissive
47 process types, but the AVC (SELinux denials) messages are still gener‐
48 ated.
49
50
52 SELinux policy is customizable based on least access required. bacula
53 policy is extremely flexible and has several booleans that allow you to
54 manipulate the policy and run bacula with the tightest access possible.
55
56
57
58 If you want to allow bacula to manage nfs files, you must turn on the
59 bacula_use_nfs boolean. Disabled by default.
60
61 setsebool -P bacula_use_nfs 1
62
63
64
65 If you want to allow bacula to manage cifs files, you must turn on the
66 bacula_use_samba boolean. Disabled by default.
67
68 setsebool -P bacula_use_samba 1
69
70
71
72 If you want to allow all daemons to write corefiles to /, you must turn
73 on the allow_daemons_dump_core boolean. Disabled by default.
74
75 setsebool -P allow_daemons_dump_core 1
76
77
78
79 If you want to allow all daemons to use tcp wrappers, you must turn on
80 the allow_daemons_use_tcp_wrapper boolean. Disabled by default.
81
82 setsebool -P allow_daemons_use_tcp_wrapper 1
83
84
85
86 If you want to allow all daemons the ability to read/write terminals,
87 you must turn on the allow_daemons_use_tty boolean. Disabled by
88 default.
89
90 setsebool -P allow_daemons_use_tty 1
91
92
93
94 If you want to allow all domains to use other domains file descriptors,
95 you must turn on the allow_domain_fd_use boolean. Enabled by default.
96
97 setsebool -P allow_domain_fd_use 1
98
99
100
101 If you want to allow confined applications to run with kerberos, you
102 must turn on the allow_kerberos boolean. Enabled by default.
103
104 setsebool -P allow_kerberos 1
105
106
107
108 If you want to allow sysadm to debug or ptrace all processes, you must
109 turn on the allow_ptrace boolean. Disabled by default.
110
111 setsebool -P allow_ptrace 1
112
113
114
115 If you want to allow system to run with NIS, you must turn on the
116 allow_ypbind boolean. Disabled by default.
117
118 setsebool -P allow_ypbind 1
119
120
121
122 If you want to enable cluster mode for daemons, you must turn on the
123 daemons_enable_cluster_mode boolean. Disabled by default.
124
125 setsebool -P daemons_enable_cluster_mode 1
126
127
128
129 If you want to allow all domains to have the kernel load modules, you
130 must turn on the domain_kernel_load_modules boolean. Disabled by
131 default.
132
133 setsebool -P domain_kernel_load_modules 1
134
135
136
137 If you want to allow all domains to execute in fips_mode, you must turn
138 on the fips_mode boolean. Enabled by default.
139
140 setsebool -P fips_mode 1
141
142
143
144 If you want to enable reading of urandom for all domains, you must turn
145 on the global_ssp boolean. Disabled by default.
146
147 setsebool -P global_ssp 1
148
149
150
151 If you want to enable support for upstart as the init program, you must
152 turn on the init_upstart boolean. Enabled by default.
153
154 setsebool -P init_upstart 1
155
156
157
158 If you want to allow confined applications to use nscd shared memory,
159 you must turn on the nscd_use_shm boolean. Enabled by default.
160
161 setsebool -P nscd_use_shm 1
162
163
164
166 SELinux defines port types to represent TCP and UDP ports.
167
168 You can see the types associated with a port by using the following
169 command:
170
171 semanage port -l
172
173
174 Policy governs the access confined processes have to these ports.
175 SELinux bacula policy is very flexible allowing users to setup their
176 bacula processes in as secure a method as possible.
177
178 The following port types are defined for bacula:
179
180
181 bacula_port_t
182
183
184
185 Default Defined Ports:
186 tcp 9103
187 udp 9103
188
190 The SELinux process type bacula_t can manage files labeled with the
191 following file types. The paths listed are the default paths for these
192 file types. Note the processes UID still need to have DAC permissions.
193
194 bacula_spool_t
195
196 /var/spool/bacula.*
197
198 bacula_store_t
199
200 /bacula(/.*)?
201 /var/bacula(/.*)?
202
203 bacula_tmp_t
204
205
206 bacula_var_lib_t
207
208 /var/lib/bacula.*
209
210 bacula_var_run_t
211
212 /var/run/bacula.*
213
214 cifs_t
215
216
217 cluster_conf_t
218
219 /etc/cluster(/.*)?
220
221 cluster_var_lib_t
222
223 /var/lib(64)?/openais(/.*)?
224 /var/lib(64)?/pengine(/.*)?
225 /var/lib(64)?/corosync(/.*)?
226 /usr/lib(64)?/heartbeat(/.*)?
227 /var/lib(64)?/heartbeat(/.*)?
228 /var/lib(64)?/pacemaker(/.*)?
229 /var/lib/cluster(/.*)?
230
231 cluster_var_run_t
232
233 /var/run/crm(/.*)?
234 /var/run/cman_.*
235 /var/run/rsctmp(/.*)?
236 /var/run/aisexec.*
237 /var/run/heartbeat(/.*)?
238 /var/run/cpglockd.pid
239 /var/run/corosync.pid
240 /var/run/rgmanager.pid
241 /var/run/cluster/rgmanager.sk
242
243 initrc_tmp_t
244
245
246 mnt_t
247
248 /mnt(/[^/]*)
249 /mnt(/[^/]*)?
250 /rhev(/[^/]*)?
251 /media(/[^/]*)
252 /media(/[^/]*)?
253 /etc/rhgb(/.*)?
254 /media/.hal-.*
255 /net
256 /afs
257 /rhev
258 /misc
259
260 nfs_t
261
262
263 root_t
264
265 /
266 /initrd
267
268 tmp_t
269
270 /tmp
271 /usr/tmp
272 /var/tmp
273 /tmp-inst
274 /var/tmp-inst
275 /var/tmp/vi.recover
276
277
279 SELinux requires files to have an extended attribute to define the file
280 type.
281
282 You can see the context of a file using the -Z option to ls
283
284 Policy governs the access confined processes have to these files.
285 SELinux bacula policy is very flexible allowing users to setup their
286 bacula processes in as secure a method as possible.
287
288 STANDARD FILE CONTEXT
289
290 SELinux defines the file context types for the bacula, if you wanted to
291 store files with these types in a diffent paths, you need to execute
292 the semanage command to sepecify alternate labeling and then use
293 restorecon to put the labels on disk.
294
295 semanage fcontext -a -t bacula_var_run_t '/srv/mybacula_content(/.*)?'
296 restorecon -R -v /srv/mybacula_content
297
298 Note: SELinux often uses regular expressions to specify labels that
299 match multiple files.
300
301 The following file types are defined for bacula:
302
303
304
305 bacula_admin_exec_t
306
307 - Set files with the bacula_admin_exec_t type, if you want to transi‐
308 tion an executable to the bacula_admin_t domain.
309
310
311 Paths:
312 /usr/sbin/bat, /usr/sbin/bconsole
313
314
315 bacula_etc_t
316
317 - Set files with the bacula_etc_t type, if you want to store bacula
318 files in the /etc directories.
319
320
321
322 bacula_exec_t
323
324 - Set files with the bacula_exec_t type, if you want to transition an
325 executable to the bacula_t domain.
326
327
328
329 bacula_initrc_exec_t
330
331 - Set files with the bacula_initrc_exec_t type, if you want to transi‐
332 tion an executable to the bacula_initrc_t domain.
333
334
335
336 bacula_log_t
337
338 - Set files with the bacula_log_t type, if you want to treat the data
339 as bacula log data, usually stored under the /var/log directory.
340
341
342
343 bacula_spool_t
344
345 - Set files with the bacula_spool_t type, if you want to store the bac‐
346 ula files under the /var/spool directory.
347
348
349
350 bacula_store_t
351
352 - Set files with the bacula_store_t type, if you want to treat the
353 files as bacula store data.
354
355
356 Paths:
357 /bacula(/.*)?, /var/bacula(/.*)?
358
359
360 bacula_tmp_t
361
362 - Set files with the bacula_tmp_t type, if you want to store bacula
363 temporary files in the /tmp directories.
364
365
366
367 bacula_unconfined_script_exec_t
368
369 - Set files with the bacula_unconfined_script_exec_t type, if you want
370 to transition an executable to the bacula_unconfined_script_t domain.
371
372
373
374 bacula_var_lib_t
375
376 - Set files with the bacula_var_lib_t type, if you want to store the
377 bacula files under the /var/lib directory.
378
379
380
381 bacula_var_run_t
382
383 - Set files with the bacula_var_run_t type, if you want to store the
384 bacula files under the /run or /var/run directory.
385
386
387
388 Note: File context can be temporarily modified with the chcon command.
389 If you want to permanently change the file context you need to use the
390 semanage fcontext command. This will modify the SELinux labeling data‐
391 base. You will need to use restorecon to apply the labels.
392
393
395 semanage fcontext can also be used to manipulate default file context
396 mappings.
397
398 semanage permissive can also be used to manipulate whether or not a
399 process type is permissive.
400
401 semanage module can also be used to enable/disable/install/remove pol‐
402 icy modules.
403
404 semanage port can also be used to manipulate the port definitions
405
406 semanage boolean can also be used to manipulate the booleans
407
408
409 system-config-selinux is a GUI tool available to customize SELinux pol‐
410 icy settings.
411
412
414 This manual page was auto-generated using sepolicy manpage .
415
416
418 selinux(8), bacula(8), semanage(8), restorecon(8), chcon(1) , setse‐
419 bool(8), bacula_admin_selinux(8), bacula_admin_selinux(8), bac‐
420 ula_unconfined_script_selinux(8), bacula_unconfined_script_selinux(8)
421
422
423
424bacula 15-06-03 bacula_selinux(8)