1fenced_selinux(8)            SELinux Policy fenced           fenced_selinux(8)
2
3
4

NAME

6       fenced_selinux  -  Security  Enhanced  Linux Policy for the fenced pro‐
7       cesses
8

DESCRIPTION

10       Security-Enhanced Linux  secures  the  fenced  processes  via  flexible
11       mandatory access control.
12
13       The  fenced  processes  execute with the fenced_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 fenced_t
20
21
22

ENTRYPOINTS

24       The  fenced_t  SELinux  type  can be entered via the fenced_exec_t file
25       type.
26
27       The default entrypoint paths for the fenced_t domain are the following:
28
29       /usr/sbin/fenced,      /usr/sbin/fence_node,      /usr/sbin/fence_tool,
30       /usr/sbin/fence_scsi, /usr/sbin/fence_virtd, /usr/sbin/fence_sanlockd
31

PROCESS TYPES

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       fenced  policy  is  very  flexible allowing users to setup their fenced
40       processes in as secure a method as possible.
41
42       The following process types are defined for fenced:
43
44       fenced_t
45
46       Note: semanage permissive -a fenced_t can be used to make  the  process
47       type  fenced_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

BOOLEANS

53       SELinux  policy is customizable based on least access required.  fenced
54       policy is extremely flexible and has several booleans that allow you to
55       manipulate the policy and run fenced with the tightest access possible.
56
57
58
59       If you want to allow fenced domain to connect to the network using TCP,
60       you must turn on the fenced_can_network_connect  boolean.  Disabled  by
61       default.
62
63       setsebool -P fenced_can_network_connect 1
64
65
66
67       If you want to allow fenced domain to execute ssh, you must turn on the
68       fenced_can_ssh boolean. Disabled by default.
69
70       setsebool -P fenced_can_ssh 1
71
72
73
74       If you want to allow all daemons to write corefiles to /, you must turn
75       on the allow_daemons_dump_core boolean. Disabled by default.
76
77       setsebool -P allow_daemons_dump_core 1
78
79
80
81       If  you want to allow all daemons to use tcp wrappers, you must turn on
82       the allow_daemons_use_tcp_wrapper boolean. Disabled by default.
83
84       setsebool -P allow_daemons_use_tcp_wrapper 1
85
86
87
88       If you want to allow all daemons the ability to  read/write  terminals,
89       you  must  turn  on  the  allow_daemons_use_tty  boolean.  Disabled  by
90       default.
91
92       setsebool -P allow_daemons_use_tty 1
93
94
95
96       If you want to allow all domains to use other domains file descriptors,
97       you must turn on the allow_domain_fd_use boolean. Enabled by default.
98
99       setsebool -P allow_domain_fd_use 1
100
101
102
103       If  you  want  to allow confined applications to run with kerberos, you
104       must turn on the allow_kerberos boolean. Enabled by default.
105
106       setsebool -P allow_kerberos 1
107
108
109
110       If you want to allow sysadm to debug or ptrace all processes, you  must
111       turn on the allow_ptrace boolean. Disabled by default.
112
113       setsebool -P allow_ptrace 1
114
115
116
117       If  you  want  to  allow  system  to run with NIS, you must turn on the
118       allow_ypbind boolean. Disabled by default.
119
120       setsebool -P allow_ypbind 1
121
122
123
124       If you want to allow cluster administrative cluster  domains  memcheck-
125       amd64-   to   use  executable  memory,  you  must  turn  on  the  clus‐
126       ter_use_execmem boolean. Disabled by default.
127
128       setsebool -P cluster_use_execmem 1
129
130
131
132       If you want to enable cluster mode for daemons, you must  turn  on  the
133       daemons_enable_cluster_mode boolean. Disabled by default.
134
135       setsebool -P daemons_enable_cluster_mode 1
136
137
138
139       If  you  want to allow all domains to have the kernel load modules, you
140       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
141       default.
142
143       setsebool -P domain_kernel_load_modules 1
144
145
146
147       If you want to allow all domains to execute in fips_mode, you must turn
148       on the fips_mode boolean. Enabled by default.
149
150       setsebool -P fips_mode 1
151
152
153
154       If you want to enable reading of urandom for all domains, you must turn
155       on the global_ssp boolean. Disabled by default.
156
157       setsebool -P global_ssp 1
158
159
160
161       If you want to enable support for upstart as the init program, you must
162       turn on the init_upstart boolean. Enabled by default.
163
164       setsebool -P init_upstart 1
165
166
167
168       If you want to allow confined applications to use nscd  shared  memory,
169       you must turn on the nscd_use_shm boolean. Enabled by default.
170
171       setsebool -P nscd_use_shm 1
172
173
174

MANAGED FILES

176       The  SELinux  process  type  fenced_t can manage files labeled with the
177       following file types.  The paths listed are the default paths for these
178       file types.  Note the processes UID still need to have DAC permissions.
179
180       cluster_conf_t
181
182            /etc/cluster(/.*)?
183
184       cluster_log
185
186
187       cluster_tmpfs_t
188
189
190       cluster_var_lib_t
191
192            /var/lib(64)?/openais(/.*)?
193            /var/lib(64)?/pengine(/.*)?
194            /var/lib(64)?/corosync(/.*)?
195            /usr/lib(64)?/heartbeat(/.*)?
196            /var/lib(64)?/heartbeat(/.*)?
197            /var/lib(64)?/pacemaker(/.*)?
198            /var/lib/cluster(/.*)?
199
200       cluster_var_run_t
201
202            /var/run/crm(/.*)?
203            /var/run/cman_.*
204            /var/run/rsctmp(/.*)?
205            /var/run/aisexec.*
206            /var/run/heartbeat(/.*)?
207            /var/run/cpglockd.pid
208            /var/run/corosync.pid
209            /var/run/rgmanager.pid
210            /var/run/cluster/rgmanager.sk
211
212       fenced_lock_t
213
214            /var/lock/fence_manual.lock
215
216       fenced_tmp_t
217
218
219       fenced_tmpfs_t
220
221
222       fenced_var_run_t
223
224            /var/run/fence.*
225            /var/run/cluster/fence_scsi.*
226            /var/run/cluster/mpath.devices
227            /var/run/cluster/fenced_override
228
229       initrc_tmp_t
230
231
232       mnt_t
233
234            /mnt(/[^/]*)
235            /mnt(/[^/]*)?
236            /rhev(/[^/]*)?
237            /media(/[^/]*)
238            /media(/[^/]*)?
239            /etc/rhgb(/.*)?
240            /media/.hal-.*
241            /net
242            /afs
243            /rhev
244            /misc
245
246       root_t
247
248            /
249            /initrd
250
251       snmpd_var_lib_t
252
253            /var/agentx(/.*)?
254            /var/net-snmp(/.*)
255            /var/lib/snmp(/.*)?
256            /var/lib/net-snmp(/.*)?
257            /var/spool/snmptt(/.*)?
258            /usr/share/snmp/mibs/.index
259
260       tmp_t
261
262            /tmp
263            /usr/tmp
264            /var/tmp
265            /tmp-inst
266            /var/tmp-inst
267            /var/tmp/vi.recover
268
269

FILE CONTEXTS

271       SELinux requires files to have an extended attribute to define the file
272       type.
273
274       You can see the context of a file using the -Z option to ls
275
276       Policy governs the access  confined  processes  have  to  these  files.
277       SELinux  fenced  policy  is very flexible allowing users to setup their
278       fenced processes in as secure a method as possible.
279
280       STANDARD FILE CONTEXT
281
282       SELinux defines the file context types for the fenced, if you wanted to
283       store  files  with  these types in a diffent paths, you need to execute
284       the semanage command  to  sepecify  alternate  labeling  and  then  use
285       restorecon to put the labels on disk.
286
287       semanage fcontext -a -t fenced_var_run_t '/srv/myfenced_content(/.*)?'
288       restorecon -R -v /srv/myfenced_content
289
290       Note:  SELinux  often  uses  regular expressions to specify labels that
291       match multiple files.
292
293       The following file types are defined for fenced:
294
295
296
297       fenced_exec_t
298
299       - Set files with the fenced_exec_t type, if you want to  transition  an
300       executable to the fenced_t domain.
301
302
303       Paths:
304            /usr/sbin/fenced,    /usr/sbin/fence_node,   /usr/sbin/fence_tool,
305            /usr/sbin/fence_scsi, /usr/sbin/fence_virtd,  /usr/sbin/fence_san‐
306            lockd
307
308
309       fenced_lock_t
310
311       - Set files with the fenced_lock_t type, if you want to treat the files
312       as fenced lock data, stored under the /var/lock directory
313
314
315
316       fenced_tmp_t
317
318       - Set files with the fenced_tmp_t type, if you  want  to  store  fenced
319       temporary files in the /tmp directories.
320
321
322
323       fenced_tmpfs_t
324
325       -  Set  files with the fenced_tmpfs_t type, if you want to store fenced
326       files on a tmpfs file system.
327
328
329
330       fenced_var_log_t
331
332       - Set files with the fenced_var_log_t type, if you want  to  treat  the
333       data  as  fenced var log data, usually stored under the /var/log direc‐
334       tory.
335
336
337
338       fenced_var_run_t
339
340       - Set files with the fenced_var_run_t type, if you want  to  store  the
341       fenced files under the /run or /var/run directory.
342
343
344       Paths:
345            /var/run/fence.*,   /var/run/cluster/fence_scsi.*,  /var/run/clus‐
346            ter/mpath.devices, /var/run/cluster/fenced_override
347
348
349       Note: File context can be temporarily modified with the chcon  command.
350       If  you want to permanently change the file context you need to use the
351       semanage fcontext command.  This will modify the SELinux labeling data‐
352       base.  You will need to use restorecon to apply the labels.
353
354

COMMANDS

356       semanage  fcontext  can also be used to manipulate default file context
357       mappings.
358
359       semanage permissive can also be used to manipulate  whether  or  not  a
360       process type is permissive.
361
362       semanage  module can also be used to enable/disable/install/remove pol‐
363       icy modules.
364
365       semanage boolean can also be used to manipulate the booleans
366
367
368       system-config-selinux is a GUI tool available to customize SELinux pol‐
369       icy settings.
370
371

AUTHOR

373       This manual page was auto-generated using sepolicy manpage .
374
375

SEE ALSO

377       selinux(8),  fenced(8),  semanage(8),  restorecon(8), chcon(1) , setse‐
378       bool(8)
379
380
381
382fenced                             15-06-03                  fenced_selinux(8)
Impressum