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_virtd,    /usr/sbin/fence_sanlockd,    /usr/share/clus‐
31       ter/fence_scsi_check,             /usr/share/cluster/fence_mpath_check,
32       /usr/share/cluster/fence_scsi_check.pl,                /usr/share/clus‐
33       ter/fence_scsi_check_hardreboot,                       /usr/share/clus‐
34       ter/fence_mpath_check_hardreboot
35

PROCESS TYPES

37       SELinux defines process types (domains) for each process running on the
38       system
39
40       You can see the context of a process using the -Z option to ps
41
42       Policy governs the access confined processes have  to  files.   SELinux
43       fenced  policy  is  very  flexible allowing users to setup their fenced
44       processes in as secure a method as possible.
45
46       The following process types are defined for fenced:
47
48       fenced_t
49
50       Note: semanage permissive -a fenced_t can be used to make  the  process
51       type  fenced_t  permissive.  SELinux does not deny access to permissive
52       process types, but the AVC (SELinux denials) messages are still  gener‐
53       ated.
54
55

BOOLEANS

57       SELinux  policy is customizable based on least access required.  fenced
58       policy is extremely flexible and has several booleans that allow you to
59       manipulate the policy and run fenced with the tightest access possible.
60
61
62
63       If you want to determine whether fenced can connect to the TCP network,
64       you must turn on the fenced_can_network_connect  boolean.  Disabled  by
65       default.
66
67       setsebool -P fenced_can_network_connect 1
68
69
70
71       If  you  want to determine whether fenced can use ssh, you must turn on
72       the fenced_can_ssh boolean. Disabled by default.
73
74       setsebool -P fenced_can_ssh 1
75
76
77
78       If you want to allow users to resolve user passwd entries directly from
79       ldap  rather  then  using  a  sssd server, you must turn on the authlo‐
80       gin_nsswitch_use_ldap boolean. Disabled by default.
81
82       setsebool -P authlogin_nsswitch_use_ldap 1
83
84
85
86       If you want to allow cluster administrative cluster  domains  memcheck-
87       amd64-   to   use  executable  memory,  you  must  turn  on  the  clus‐
88       ter_use_execmem boolean. Disabled by default.
89
90       setsebool -P cluster_use_execmem 1
91
92
93
94       If you want to allow all daemons to write corefiles to /, you must turn
95       on the daemons_dump_core boolean. Disabled by default.
96
97       setsebool -P daemons_dump_core 1
98
99
100
101       If  you  want  to enable cluster mode for daemons, you must turn on the
102       daemons_enable_cluster_mode boolean. Enabled by default.
103
104       setsebool -P daemons_enable_cluster_mode 1
105
106
107
108       If you want to allow all daemons to use tcp wrappers, you must turn  on
109       the daemons_use_tcp_wrapper boolean. Disabled by default.
110
111       setsebool -P daemons_use_tcp_wrapper 1
112
113
114
115       If  you  want to allow all daemons the ability to read/write terminals,
116       you must turn on the daemons_use_tty boolean. Disabled by default.
117
118       setsebool -P daemons_use_tty 1
119
120
121
122       If you want to deny any process from ptracing or  debugging  any  other
123       processes,  you  must  turn  on  the  deny_ptrace  boolean.  Enabled by
124       default.
125
126       setsebool -P deny_ptrace 1
127
128
129
130       If you want to allow any process  to  mmap  any  file  on  system  with
131       attribute  file_type,  you must turn on the domain_can_mmap_files bool‐
132       ean. Enabled by default.
133
134       setsebool -P domain_can_mmap_files 1
135
136
137
138       If you want to allow all domains write to kmsg_device, while kernel  is
139       executed  with  systemd.log_target=kmsg parameter, you must turn on the
140       domain_can_write_kmsg boolean. Disabled by default.
141
142       setsebool -P domain_can_write_kmsg 1
143
144
145
146       If you want to allow all domains to use other domains file descriptors,
147       you must turn on the domain_fd_use boolean. Enabled by default.
148
149       setsebool -P domain_fd_use 1
150
151
152
153       If  you  want to allow all domains to have the kernel load modules, you
154       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
155       default.
156
157       setsebool -P domain_kernel_load_modules 1
158
159
160
161       If you want to allow all domains to execute in fips_mode, you must turn
162       on the fips_mode boolean. Enabled by default.
163
164       setsebool -P fips_mode 1
165
166
167
168       If you want to enable reading of urandom for all domains, you must turn
169       on the global_ssp boolean. Disabled by default.
170
171       setsebool -P global_ssp 1
172
173
174
175       If  you  want  to allow confined applications to run with kerberos, you
176       must turn on the kerberos_enabled boolean. Enabled by default.
177
178       setsebool -P kerberos_enabled 1
179
180
181
182       If you want to allow system to run with  NIS,  you  must  turn  on  the
183       nis_enabled boolean. Disabled by default.
184
185       setsebool -P nis_enabled 1
186
187
188
189       If  you  want to allow confined applications to use nscd shared memory,
190       you must turn on the nscd_use_shm boolean. Disabled by default.
191
192       setsebool -P nscd_use_shm 1
193
194
195

MANAGED FILES

197       The SELinux process type fenced_t can manage  files  labeled  with  the
198       following file types.  The paths listed are the default paths for these
199       file types.  Note the processes UID still need to have DAC permissions.
200
201       cluster_conf_t
202
203            /etc/cluster(/.*)?
204
205       cluster_log
206
207
208       cluster_tmpfs_t
209
210
211       cluster_var_lib_t
212
213            /var/lib/pcsd(/.*)?
214            /var/lib/cluster(/.*)?
215            /var/lib/openais(/.*)?
216            /var/lib/pengine(/.*)?
217            /var/lib/corosync(/.*)?
218            /usr/lib/heartbeat(/.*)?
219            /var/lib/heartbeat(/.*)?
220            /var/lib/pacemaker(/.*)?
221
222       cluster_var_run_t
223
224            /var/run/crm(/.*)?
225            /var/run/cman_.*
226            /var/run/rsctmp(/.*)?
227            /var/run/aisexec.*
228            /var/run/heartbeat(/.*)?
229            /var/run/corosync-qnetd(/.*)?
230            /var/run/corosync-qdevice(/.*)?
231            /var/run/cpglockd.pid
232            /var/run/corosync.pid
233            /var/run/rgmanager.pid
234            /var/run/cluster/rgmanager.sk
235
236       fenced_lock_t
237
238            /var/lock/fence_manual.lock
239
240       fenced_tmp_t
241
242
243       fenced_tmpfs_t
244
245
246       fenced_var_run_t
247
248            /var/run/fence.*
249            /var/run/cluster/fence_scsi.*
250            /var/run/cluster/mpath.devices
251            /var/run/cluster/fenced_override
252
253       root_t
254
255            /sysroot/ostree/deploy/.*-atomic.*/deploy(/.*)?
256            /
257            /initrd
258
259       snmpd_var_lib_t
260
261            /var/agentx(/.*)?
262            /var/net-snmp(/.*)
263            /var/lib/snmp(/.*)?
264            /var/net-snmp(/.*)?
265            /var/lib/net-snmp(/.*)?
266            /var/spool/snmptt(/.*)?
267            /usr/share/snmp/mibs/.index
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_virtd,  /usr/sbin/fence_sanlockd, /usr/share/clus‐
306            ter/fence_scsi_check,        /usr/share/cluster/fence_mpath_check,
307            /usr/share/cluster/fence_scsi_check.pl,           /usr/share/clus‐
308            ter/fence_scsi_check_hardreboot,                  /usr/share/clus‐
309            ter/fence_mpath_check_hardreboot
310
311
312       fenced_lock_t
313
314       - Set files with the fenced_lock_t type, if you want to treat the files
315       as fenced lock data, stored under the /var/lock directory
316
317
318
319       fenced_tmp_t
320
321       - Set files with the fenced_tmp_t type, if you  want  to  store  fenced
322       temporary files in the /tmp directories.
323
324
325
326       fenced_tmpfs_t
327
328       -  Set  files with the fenced_tmpfs_t type, if you want to store fenced
329       files on a tmpfs file system.
330
331
332
333       fenced_var_log_t
334
335       - Set files with the fenced_var_log_t type, if you want  to  treat  the
336       data  as  fenced var log data, usually stored under the /var/log direc‐
337       tory.
338
339
340
341       fenced_var_run_t
342
343       - Set files with the fenced_var_run_t type, if you want  to  store  the
344       fenced files under the /run or /var/run directory.
345
346
347       Paths:
348            /var/run/fence.*,   /var/run/cluster/fence_scsi.*,  /var/run/clus‐
349            ter/mpath.devices, /var/run/cluster/fenced_override
350
351
352       Note: File context can be temporarily modified with the chcon  command.
353       If  you want to permanently change the file context you need to use the
354       semanage fcontext command.  This will modify the SELinux labeling data‐
355       base.  You will need to use restorecon to apply the labels.
356
357

COMMANDS

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

AUTHOR

376       This manual page was auto-generated using sepolicy manpage .
377
378

SEE ALSO

380       selinux(8),  fenced(8),  semanage(8),  restorecon(8),  chcon(1), sepol‐
381       icy(8) , setsebool(8)
382
383
384
385fenced                             19-04-25                  fenced_selinux(8)
Impressum