1boinc_selinux(8) SELinux Policy boinc boinc_selinux(8)
2
3
4
6 boinc_selinux - Security Enhanced Linux Policy for the boinc processes
7
9 Security-Enhanced Linux secures the boinc processes via flexible manda‐
10 tory access control.
11
12 The boinc processes execute with the boinc_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 boinc_t
19
20
21
23 The boinc_t SELinux type can be entered via the boinc_exec_t file type.
24
25 The default entrypoint paths for the boinc_t domain are the following:
26
27 /usr/bin/boinc, /usr/bin/boinc_client
28
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 boinc policy is very flexible allowing users to setup their boinc pro‐
37 cesses in as secure a method as possible.
38
39 The following process types are defined for boinc:
40
41 boinc_t, boinc_project_t
42
43 Note: semanage permissive -a boinc_t can be used to make the process
44 type boinc_t permissive. SELinux does not deny access to permissive
45 process types, but the AVC (SELinux denials) messages are still gener‐
46 ated.
47
48
50 SELinux policy is customizable based on least access required. boinc
51 policy is extremely flexible and has several booleans that allow you to
52 manipulate the policy and run boinc with the tightest access possible.
53
54
55
56 If you want to determine whether boinc can execmem/execstack, you must
57 turn on the boinc_execmem boolean. Enabled by default.
58
59 setsebool -P boinc_execmem 1
60
61
62
63 If you want to allow all domains to execute in fips_mode, you must turn
64 on the fips_mode boolean. Enabled by default.
65
66 setsebool -P fips_mode 1
67
68
69
71 SELinux defines port types to represent TCP and UDP ports.
72
73 You can see the types associated with a port by using the following
74 command:
75
76 semanage port -l
77
78
79 Policy governs the access confined processes have to these ports.
80 SELinux boinc policy is very flexible allowing users to setup their
81 boinc processes in as secure a method as possible.
82
83 The following port types are defined for boinc:
84
85
86 boinc_client_port_t
87
88
89
90 Default Defined Ports:
91 tcp 1043
92 udp 1034
93
94
95 boinc_port_t
96
97
98
99 Default Defined Ports:
100 tcp 31416
101
103 The SELinux process type boinc_t can manage files labeled with the fol‐
104 lowing file types. The paths listed are the default paths for these
105 file types. Note the processes UID still need to have DAC permissions.
106
107 boinc_log_t
108
109 /var/log/boinc.log.*
110 /var/log/boincerr.log.*
111
112 boinc_project_var_lib_t
113
114 /var/lib/boinc/slots(/.*)?
115 /var/lib/boinc/projects(/.*)?
116
117 boinc_tmp_t
118
119
120 boinc_tmpfs_t
121
122
123 boinc_var_lib_t
124
125 /var/lib/boinc(/.*)?
126 /var/lib/boinc-client(/.*)?
127 /etc/boinc-client/global_prefs_override.xml
128
129 cluster_conf_t
130
131 /etc/cluster(/.*)?
132
133 cluster_var_lib_t
134
135 /var/lib/pcsd(/.*)?
136 /var/lib/cluster(/.*)?
137 /var/lib/openais(/.*)?
138 /var/lib/pengine(/.*)?
139 /var/lib/corosync(/.*)?
140 /usr/lib/heartbeat(/.*)?
141 /var/lib/heartbeat(/.*)?
142 /var/lib/pacemaker(/.*)?
143
144 cluster_var_run_t
145
146 /var/run/crm(/.*)?
147 /var/run/cman_.*
148 /var/run/rsctmp(/.*)?
149 /var/run/aisexec.*
150 /var/run/heartbeat(/.*)?
151 /var/run/pcsd-ruby.socket
152 /var/run/corosync-qnetd(/.*)?
153 /var/run/corosync-qdevice(/.*)?
154 /var/run/corosync.pid
155 /var/run/cpglockd.pid
156 /var/run/rgmanager.pid
157 /var/run/cluster/rgmanager.sk
158
159 krb5_host_rcache_t
160
161 /var/tmp/krb5_0.rcache2
162 /var/cache/krb5rcache(/.*)?
163 /var/tmp/nfs_0
164 /var/tmp/DNS_25
165 /var/tmp/host_0
166 /var/tmp/imap_0
167 /var/tmp/HTTP_23
168 /var/tmp/HTTP_48
169 /var/tmp/ldap_55
170 /var/tmp/ldap_487
171 /var/tmp/ldapmap1_0
172
173 root_t
174
175 /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
176 /
177 /initrd
178
179
181 SELinux requires files to have an extended attribute to define the file
182 type.
183
184 You can see the context of a file using the -Z option to ls
185
186 Policy governs the access confined processes have to these files.
187 SELinux boinc policy is very flexible allowing users to setup their
188 boinc processes in as secure a method as possible.
189
190 EQUIVALENCE DIRECTORIES
191
192
193 boinc policy stores data with multiple different file context types un‐
194 der the /var/lib/boinc directory. If you would like to store the data
195 in a different directory you can use the semanage command to create an
196 equivalence mapping. If you wanted to store this data under the /srv
197 directory you would execute the following command:
198
199 semanage fcontext -a -e /var/lib/boinc /srv/boinc
200 restorecon -R -v /srv/boinc
201
202 STANDARD FILE CONTEXT
203
204 SELinux defines the file context types for the boinc, if you wanted to
205 store files with these types in a diffent paths, you need to execute
206 the semanage command to sepecify alternate labeling and then use re‐
207 storecon to put the labels on disk.
208
209 semanage fcontext -a -t boinc_project_var_lib_t '/srv/myboinc_con‐
210 tent(/.*)?'
211 restorecon -R -v /srv/myboinc_content
212
213 Note: SELinux often uses regular expressions to specify labels that
214 match multiple files.
215
216 The following file types are defined for boinc:
217
218
219
220 boinc_exec_t
221
222 - Set files with the boinc_exec_t type, if you want to transition an
223 executable to the boinc_t domain.
224
225
226 Paths:
227 /usr/bin/boinc, /usr/bin/boinc_client
228
229
230 boinc_initrc_exec_t
231
232 - Set files with the boinc_initrc_exec_t type, if you want to transi‐
233 tion an executable to the boinc_initrc_t domain.
234
235
236
237 boinc_log_t
238
239 - Set files with the boinc_log_t type, if you want to treat the data as
240 boinc log data, usually stored under the /var/log directory.
241
242
243 Paths:
244 /var/log/boinc.log.*, /var/log/boincerr.log.*
245
246
247 boinc_project_tmp_t
248
249 - Set files with the boinc_project_tmp_t type, if you want to store
250 boinc project temporary files in the /tmp directories.
251
252
253
254 boinc_project_var_lib_t
255
256 - Set files with the boinc_project_var_lib_t type, if you want to store
257 the boinc project files under the /var/lib directory.
258
259
260 Paths:
261 /var/lib/boinc/slots(/.*)?, /var/lib/boinc/projects(/.*)?
262
263
264 boinc_tmp_t
265
266 - Set files with the boinc_tmp_t type, if you want to store boinc tem‐
267 porary files in the /tmp directories.
268
269
270
271 boinc_tmpfs_t
272
273 - Set files with the boinc_tmpfs_t type, if you want to store boinc
274 files on a tmpfs file system.
275
276
277
278 boinc_unit_file_t
279
280 - Set files with the boinc_unit_file_t type, if you want to treat the
281 files as boinc unit content.
282
283
284
285 boinc_var_lib_t
286
287 - Set files with the boinc_var_lib_t type, if you want to store the
288 boinc files under the /var/lib directory.
289
290
291 Paths:
292 /var/lib/boinc(/.*)?, /var/lib/boinc-client(/.*)?, /etc/boinc-
293 client/global_prefs_override.xml
294
295
296 Note: File context can be temporarily modified with the chcon command.
297 If you want to permanently change the file context you need to use the
298 semanage fcontext command. This will modify the SELinux labeling data‐
299 base. You will need to use restorecon to apply the labels.
300
301
303 semanage fcontext can also be used to manipulate default file context
304 mappings.
305
306 semanage permissive can also be used to manipulate whether or not a
307 process type is permissive.
308
309 semanage module can also be used to enable/disable/install/remove pol‐
310 icy modules.
311
312 semanage port can also be used to manipulate the port definitions
313
314 semanage boolean can also be used to manipulate the booleans
315
316
317 system-config-selinux is a GUI tool available to customize SELinux pol‐
318 icy settings.
319
320
322 This manual page was auto-generated using sepolicy manpage .
323
324
326 selinux(8), boinc(8), semanage(8), restorecon(8), chcon(1), sepol‐
327 icy(8), setsebool(8), boinc_project_selinux(8),
328 boinc_project_selinux(8)
329
330
331
332boinc 21-06-09 boinc_selinux(8)