1sbd_selinux(8)                SELinux Policy sbd                sbd_selinux(8)
2
3
4

NAME

6       sbd_selinux - Security Enhanced Linux Policy for the sbd processes
7

DESCRIPTION

9       Security-Enhanced  Linux  secures the sbd processes via flexible manda‐
10       tory access control.
11
12       The sbd processes execute with the sbd_t SELinux type. You can check if
13       you  have  these processes running by executing the ps command with the
14       -Z qualifier.
15
16       For example:
17
18       ps -eZ | grep sbd_t
19
20
21

ENTRYPOINTS

23       The sbd_t SELinux type can be entered via the sbd_exec_t file type.
24
25       The default entrypoint paths for the sbd_t domain are the following:
26
27       /usr/sbin/sbd
28

PROCESS TYPES

30       SELinux defines process types (domains) for each process running on the
31       system
32
33       You can see the context of a process using the -Z option to ps
34
35       Policy  governs  the  access confined processes have to files.  SELinux
36       sbd policy is very flexible allowing users to setup their sbd processes
37       in as secure a method as possible.
38
39       The following process types are defined for sbd:
40
41       sbd_t
42
43       Note: semanage permissive -a sbd_t can be used to make the process type
44       sbd_t permissive. SELinux does not deny access  to  permissive  process
45       types, but the AVC (SELinux denials) messages are still generated.
46
47

BOOLEANS

49       SELinux  policy  is  customizable  based on least access required.  sbd
50       policy is extremely flexible and has several booleans that allow you to
51       manipulate the policy and run sbd with the tightest access possible.
52
53
54
55       If you want to allow all daemons to write corefiles to /, you must turn
56       on the daemons_dump_core boolean. Disabled by default.
57
58       setsebool -P daemons_dump_core 1
59
60
61
62       If you want to enable cluster mode for daemons, you must  turn  on  the
63       daemons_enable_cluster_mode boolean. Enabled by default.
64
65       setsebool -P daemons_enable_cluster_mode 1
66
67
68
69       If  you want to allow all daemons to use tcp wrappers, you must turn on
70       the daemons_use_tcp_wrapper boolean. Disabled by default.
71
72       setsebool -P daemons_use_tcp_wrapper 1
73
74
75
76       If you want to allow all daemons the ability to  read/write  terminals,
77       you must turn on the daemons_use_tty boolean. Disabled by default.
78
79       setsebool -P daemons_use_tty 1
80
81
82
83       If  you  want  to deny any process from ptracing or debugging any other
84       processes, you  must  turn  on  the  deny_ptrace  boolean.  Enabled  by
85       default.
86
87       setsebool -P deny_ptrace 1
88
89
90
91       If  you  want  to  allow  any  process  to mmap any file on system with
92       attribute file_type, you must turn on the  domain_can_mmap_files  bool‐
93       ean. Enabled by default.
94
95       setsebool -P domain_can_mmap_files 1
96
97
98
99       If  you want to allow all domains write to kmsg_device, while kernel is
100       executed with systemd.log_target=kmsg parameter, you must turn  on  the
101       domain_can_write_kmsg boolean. Disabled by default.
102
103       setsebool -P domain_can_write_kmsg 1
104
105
106
107       If you want to allow all domains to use other domains file descriptors,
108       you must turn on the domain_fd_use boolean. Enabled by default.
109
110       setsebool -P domain_fd_use 1
111
112
113
114       If you want to allow all domains to have the kernel load  modules,  you
115       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
116       default.
117
118       setsebool -P domain_kernel_load_modules 1
119
120
121
122       If you want to allow all domains to execute in fips_mode, you must turn
123       on the fips_mode boolean. Enabled by default.
124
125       setsebool -P fips_mode 1
126
127
128
129       If you want to enable reading of urandom for all domains, you must turn
130       on the global_ssp boolean. Disabled by default.
131
132       setsebool -P global_ssp 1
133
134
135

MANAGED FILES

137       The SELinux process type sbd_t can manage files labeled with  the  fol‐
138       lowing  file  types.   The paths listed are the default paths for these
139       file types.  Note the processes UID still need to have DAC permissions.
140
141       cluster_conf_t
142
143            /etc/cluster(/.*)?
144
145       cluster_tmpfs_t
146
147
148       cluster_var_lib_t
149
150            /var/lib/pcsd(/.*)?
151            /var/lib/cluster(/.*)?
152            /var/lib/openais(/.*)?
153            /var/lib/pengine(/.*)?
154            /var/lib/corosync(/.*)?
155            /usr/lib/heartbeat(/.*)?
156            /var/lib/heartbeat(/.*)?
157            /var/lib/pacemaker(/.*)?
158
159       cluster_var_run_t
160
161            /var/run/crm(/.*)?
162            /var/run/cman_.*
163            /var/run/rsctmp(/.*)?
164            /var/run/aisexec.*
165            /var/run/heartbeat(/.*)?
166            /var/run/corosync-qnetd(/.*)?
167            /var/run/corosync-qdevice(/.*)?
168            /var/run/cpglockd.pid
169            /var/run/corosync.pid
170            /var/run/rgmanager.pid
171            /var/run/cluster/rgmanager.sk
172
173       root_t
174
175            /sysroot/ostree/deploy/.*-atomic.*/deploy(/.*)?
176            /
177            /initrd
178
179       sbd_tmpfs_t
180
181
182       sbd_var_run_t
183
184            /var/run/sbd.*
185
186

FILE CONTEXTS

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 sbd policy is very flexible allowing users to setup  their  sbd
195       processes in as secure a method as possible.
196
197       STANDARD FILE CONTEXT
198
199       SELinux  defines  the  file context types for the sbd, 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 sbd_var_run_t '/srv/mysbd_content(/.*)?'
205       restorecon -R -v /srv/mysbd_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 sbd:
211
212
213
214       sbd_exec_t
215
216       - Set files with the sbd_exec_t type, if you want to transition an exe‐
217       cutable to the sbd_t domain.
218
219
220
221       sbd_tmpfs_t
222
223       - Set files with the sbd_tmpfs_t type, if you want to store  sbd  files
224       on a tmpfs file system.
225
226
227
228       sbd_unit_file_t
229
230       -  Set  files  with  the sbd_unit_file_t type, if you want to treat the
231       files as sbd unit content.
232
233
234       Paths:
235            /usr/lib/systemd/system/sbd.service,         /usr/lib/systemd/sys‐
236            tem/sbd_remote.service
237
238
239       sbd_var_run_t
240
241       -  Set  files with the sbd_var_run_t type, if you want to store the sbd
242       files under the /run or /var/run directory.
243
244
245
246       Note: File context can be temporarily modified with the chcon  command.
247       If  you want to permanently change the file context you need to use the
248       semanage fcontext command.  This will modify the SELinux labeling data‐
249       base.  You will need to use restorecon to apply the labels.
250
251

COMMANDS

253       semanage  fcontext  can also be used to manipulate default file context
254       mappings.
255
256       semanage permissive can also be used to manipulate  whether  or  not  a
257       process type is permissive.
258
259       semanage  module can also be used to enable/disable/install/remove pol‐
260       icy modules.
261
262       semanage boolean can also be used to manipulate the booleans
263
264
265       system-config-selinux is a GUI tool available to customize SELinux pol‐
266       icy settings.
267
268

AUTHOR

270       This manual page was auto-generated using sepolicy manpage .
271
272

SEE ALSO

274       selinux(8), sbd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) ,
275       setsebool(8)
276
277
278
279sbd                                19-04-25                     sbd_selinux(8)
Impressum