1rhsmcertd_selinux(8) SELinux Policy rhsmcertd rhsmcertd_selinux(8)
2
3
4
6 rhsmcertd_selinux - Security Enhanced Linux Policy for the rhsmcertd
7 processes
8
10 Security-Enhanced Linux secures the rhsmcertd processes via flexible
11 mandatory access control.
12
13 The rhsmcertd processes execute with the rhsmcertd_t SELinux type. You
14 can check if you have these processes running by executing the ps com‐
15 mand with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep rhsmcertd_t
20
21
22
24 The rhsmcertd_t SELinux type can be entered via the rhsmcertd_exec_t
25 file type.
26
27 The default entrypoint paths for the rhsmcertd_t domain are the follow‐
28 ing:
29
30 /usr/bin/rhsmcertd, /usr/libexec/rhsmd
31
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 rhsmcertd policy is very flexible allowing users to setup their rhsm‐
40 certd processes in as secure a method as possible.
41
42 The following process types are defined for rhsmcertd:
43
44 rhsmcertd_t
45
46 Note: semanage permissive -a rhsmcertd_t can be used to make the
47 process type rhsmcertd_t permissive. SELinux does not deny access to
48 permissive process types, but the AVC (SELinux denials) messages are
49 still generated.
50
51
53 SELinux policy is customizable based on least access required. rhsm‐
54 certd policy is extremely flexible and has several booleans that allow
55 you to manipulate the policy and run rhsmcertd with the tightest access
56 possible.
57
58
59
60 If you want to allow all daemons to write corefiles to /, you must turn
61 on the daemons_dump_core boolean. Disabled by default.
62
63 setsebool -P daemons_dump_core 1
64
65
66
67 If you want to enable cluster mode for daemons, you must turn on the
68 daemons_enable_cluster_mode boolean. Enabled by default.
69
70 setsebool -P daemons_enable_cluster_mode 1
71
72
73
74 If you want to allow all daemons to use tcp wrappers, you must turn on
75 the daemons_use_tcp_wrapper boolean. Disabled by default.
76
77 setsebool -P daemons_use_tcp_wrapper 1
78
79
80
81 If you want to allow all daemons the ability to read/write terminals,
82 you must turn on the daemons_use_tty boolean. Disabled by default.
83
84 setsebool -P daemons_use_tty 1
85
86
87
88 If you want to deny any process from ptracing or debugging any other
89 processes, you must turn on the deny_ptrace boolean. Enabled by
90 default.
91
92 setsebool -P deny_ptrace 1
93
94
95
96 If you want to allow any process to mmap any file on system with
97 attribute file_type, you must turn on the domain_can_mmap_files bool‐
98 ean. Enabled by default.
99
100 setsebool -P domain_can_mmap_files 1
101
102
103
104 If you want to allow all domains write to kmsg_device, while kernel is
105 executed with systemd.log_target=kmsg parameter, you must turn on the
106 domain_can_write_kmsg boolean. Disabled by default.
107
108 setsebool -P domain_can_write_kmsg 1
109
110
111
112 If you want to allow all domains to use other domains file descriptors,
113 you must turn on the domain_fd_use boolean. Enabled by default.
114
115 setsebool -P domain_fd_use 1
116
117
118
119 If you want to allow all domains to have the kernel load modules, you
120 must turn on the domain_kernel_load_modules boolean. Disabled by
121 default.
122
123 setsebool -P domain_kernel_load_modules 1
124
125
126
127 If you want to allow all domains to execute in fips_mode, you must turn
128 on the fips_mode boolean. Enabled by default.
129
130 setsebool -P fips_mode 1
131
132
133
134 If you want to enable reading of urandom for all domains, you must turn
135 on the global_ssp boolean. Disabled by default.
136
137 setsebool -P global_ssp 1
138
139
140
141 If you want to allow system to run with NIS, you must turn on the
142 nis_enabled boolean. Disabled by default.
143
144 setsebool -P nis_enabled 1
145
146
147
148 If you want to allow confined applications to use nscd shared memory,
149 you must turn on the nscd_use_shm boolean. Disabled by default.
150
151 setsebool -P nscd_use_shm 1
152
153
154
156 The SELinux process type rhsmcertd_t can manage files labeled with the
157 following file types. The paths listed are the default paths for these
158 file types. Note the processes UID still need to have DAC permissions.
159
160 cert_t
161
162 /etc/pki(/.*)?
163 /etc/ssl(/.*)?
164 /etc/ipa/nssdb(/.*)?
165 /etc/httpd/alias(/.*)?
166 /etc/docker/certs.d(/.*)?
167 /usr/share/ssl/certs(/.*)?
168 /var/lib/letsencrypt(/.*)?
169 /usr/share/ssl/private(/.*)?
170 /var/named/chroot/etc/pki(/.*)?
171 /usr/share/ca-certificates(/.*)?
172 /usr/share/pki/ca-certificates(/.*)?
173 /usr/share/pki/ca-trust-source(/.*)?
174
175 cluster_conf_t
176
177 /etc/cluster(/.*)?
178
179 cluster_var_lib_t
180
181 /var/lib/pcsd(/.*)?
182 /var/lib/cluster(/.*)?
183 /var/lib/openais(/.*)?
184 /var/lib/pengine(/.*)?
185 /var/lib/corosync(/.*)?
186 /usr/lib/heartbeat(/.*)?
187 /var/lib/heartbeat(/.*)?
188 /var/lib/pacemaker(/.*)?
189
190 cluster_var_run_t
191
192 /var/run/crm(/.*)?
193 /var/run/cman_.*
194 /var/run/rsctmp(/.*)?
195 /var/run/aisexec.*
196 /var/run/heartbeat(/.*)?
197 /var/run/corosync-qnetd(/.*)?
198 /var/run/corosync-qdevice(/.*)?
199 /var/run/cpglockd.pid
200 /var/run/corosync.pid
201 /var/run/rgmanager.pid
202 /var/run/cluster/rgmanager.sk
203
204 container_config_t
205
206 /etc/docker(/.*)?
207
208 etc_runtime_t
209
210 /[^/]+
211 /etc/mtab.*
212 /etc/blkid(/.*)?
213 /etc/nologin.*
214 /etc/.fstab.hal..+
215 /halt
216 /fastboot
217 /poweroff
218 /etc/cmtab
219 /forcefsck
220 /.autofsck
221 /.suspended
222 /fsckoptions
223 /var/.updated
224 /etc/.updated
225 /.autorelabel
226 /etc/securetty
227 /etc/nohotplug
228 /etc/killpower
229 /etc/ioctl.save
230 /etc/fstab.REVOKE
231 /etc/network/ifstate
232 /etc/sysconfig/hwconf
233 /etc/ptal/ptal-printd-like
234 /etc/sysconfig/iptables.save
235 /etc/xorg.conf.d/00-system-setup-keyboard.conf
236 /etc/X11/xorg.conf.d/00-system-setup-keyboard.conf
237
238 rhnsd_conf_t
239
240 /etc/sysconfig/rhn(/.*)?
241
242 rhsmcertd_lock_t
243
244 /var/lock/subsys/rhsmcertd
245
246 rhsmcertd_log_t
247
248 /var/log/rhsm(/.*)?
249
250 rhsmcertd_tmp_t
251
252
253 rhsmcertd_var_lib_t
254
255 /var/lib/rhsm(/.*)?
256
257 rhsmcertd_var_run_t
258
259 /var/run/rhsm(/.*)?
260
261 root_t
262
263 /sysroot/ostree/deploy/.*-atomic.*/deploy(/.*)?
264 /
265 /initrd
266
267 rpm_var_lib_t
268
269 /var/lib/rpm(/.*)?
270 /var/lib/yum(/.*)?
271 /var/lib/dnf(/.*)?
272 /usr/share/rpm(/.*)?
273 /var/lib/PackageKit(/.*)?
274 /var/lib/alternatives(/.*)?
275 /var/lib/rpmrebuilddb.*(/.*)?
276
277 system_conf_t
278
279 /ostree/repo(/.*)?
280 /etc/yum.repos.d(/.*)?
281 /etc/sysctl.conf(.old)?
282 /etc/sysconfig/ip6?tables.*
283 /etc/ostree/remotes.d(/.*)?
284 /etc/sysconfig/ipvsadm.*
285 /etc/sysconfig/ebtables.*
286 /etc/sysconfig/system-config-firewall.*
287 /ostree/deploy/rhel-atomic-host/deploy(/.*)?
288
289 var_lock_t
290
291 /run/lock(/.*)?
292 /var/lock
293 /var/lock
294
295
297 SELinux requires files to have an extended attribute to define the file
298 type.
299
300 You can see the context of a file using the -Z option to ls
301
302 Policy governs the access confined processes have to these files.
303 SELinux rhsmcertd policy is very flexible allowing users to setup their
304 rhsmcertd processes in as secure a method as possible.
305
306 STANDARD FILE CONTEXT
307
308 SELinux defines the file context types for the rhsmcertd, if you wanted
309 to store files with these types in a diffent paths, you need to execute
310 the semanage command to sepecify alternate labeling and then use
311 restorecon to put the labels on disk.
312
313 semanage fcontext -a -t rhsmcertd_var_run_t '/srv/myrhsmcertd_con‐
314 tent(/.*)?'
315 restorecon -R -v /srv/myrhsmcertd_content
316
317 Note: SELinux often uses regular expressions to specify labels that
318 match multiple files.
319
320 The following file types are defined for rhsmcertd:
321
322
323
324 rhsmcertd_exec_t
325
326 - Set files with the rhsmcertd_exec_t type, if you want to transition
327 an executable to the rhsmcertd_t domain.
328
329
330 Paths:
331 /usr/bin/rhsmcertd, /usr/libexec/rhsmd
332
333
334 rhsmcertd_initrc_exec_t
335
336 - Set files with the rhsmcertd_initrc_exec_t type, if you want to tran‐
337 sition an executable to the rhsmcertd_initrc_t domain.
338
339
340
341 rhsmcertd_lock_t
342
343 - Set files with the rhsmcertd_lock_t type, if you want to treat the
344 files as rhsmcertd lock data, stored under the /var/lock directory
345
346
347
348 rhsmcertd_log_t
349
350 - Set files with the rhsmcertd_log_t type, if you want to treat the
351 data as rhsmcertd log data, usually stored under the /var/log direc‐
352 tory.
353
354
355
356 rhsmcertd_tmp_t
357
358 - Set files with the rhsmcertd_tmp_t type, if you want to store rhsm‐
359 certd temporary files in the /tmp directories.
360
361
362
363 rhsmcertd_var_lib_t
364
365 - Set files with the rhsmcertd_var_lib_t type, if you want to store the
366 rhsmcertd files under the /var/lib directory.
367
368
369
370 rhsmcertd_var_run_t
371
372 - Set files with the rhsmcertd_var_run_t type, if you want to store the
373 rhsmcertd files under the /run or /var/run directory.
374
375
376
377 Note: File context can be temporarily modified with the chcon command.
378 If you want to permanently change the file context you need to use the
379 semanage fcontext command. This will modify the SELinux labeling data‐
380 base. You will need to use restorecon to apply the labels.
381
382
384 semanage fcontext can also be used to manipulate default file context
385 mappings.
386
387 semanage permissive can also be used to manipulate whether or not a
388 process type is permissive.
389
390 semanage module can also be used to enable/disable/install/remove pol‐
391 icy modules.
392
393 semanage boolean can also be used to manipulate the booleans
394
395
396 system-config-selinux is a GUI tool available to customize SELinux pol‐
397 icy settings.
398
399
401 This manual page was auto-generated using sepolicy manpage .
402
403
405 selinux(8), rhsmcertd(8), semanage(8), restorecon(8), chcon(1), sepol‐
406 icy(8) , setsebool(8)
407
408
409
410rhsmcertd 19-04-25 rhsmcertd_selinux(8)