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, /usr/libexec/rhsm-service,
31 /usr/libexec/rhsm-facts-service
32
34 SELinux defines process types (domains) for each process running on the
35 system
36
37 You can see the context of a process using the -Z option to ps
38
39 Policy governs the access confined processes have to files. SELinux
40 rhsmcertd policy is very flexible allowing users to setup their rhsm‐
41 certd processes in as secure a method as possible.
42
43 The following process types are defined for rhsmcertd:
44
45 rhsmcertd_t
46
47 Note: semanage permissive -a rhsmcertd_t can be used to make the
48 process type rhsmcertd_t permissive. SELinux does not deny access to
49 permissive process types, but the AVC (SELinux denials) messages are
50 still generated.
51
52
54 SELinux policy is customizable based on least access required. rhsm‐
55 certd policy is extremely flexible and has several booleans that allow
56 you to manipulate the policy and run rhsmcertd with the tightest access
57 possible.
58
59
60
61 If you want to allow all domains to execute in fips_mode, you must turn
62 on the fips_mode boolean. Enabled by default.
63
64 setsebool -P fips_mode 1
65
66
67
68 If you want to allow system to run with NIS, you must turn on the
69 nis_enabled boolean. Disabled by default.
70
71 setsebool -P nis_enabled 1
72
73
74
75 If you want to allow confined applications to use nscd shared memory,
76 you must turn on the nscd_use_shm boolean. Enabled by default.
77
78 setsebool -P nscd_use_shm 1
79
80
81
83 The SELinux process type rhsmcertd_t can manage files labeled with the
84 following file types. The paths listed are the default paths for these
85 file types. Note the processes UID still need to have DAC permissions.
86
87 cert_t
88
89 /etc/(letsencrypt|certbot)/(live|archive)(/.*)?
90 /etc/pki(/.*)?
91 /etc/ssl(/.*)?
92 /etc/ipa/nssdb(/.*)?
93 /etc/httpd/alias(/.*)?
94 /etc/docker/certs.d(/.*)?
95 /usr/share/ssl/certs(/.*)?
96 /var/lib/letsencrypt(/.*)?
97 /usr/share/ssl/private(/.*)?
98 /var/named/chroot/etc/pki(/.*)?
99 /usr/share/ca-certificates(/.*)?
100 /usr/share/pki/ca-certificates(/.*)?
101 /usr/share/pki/ca-trust-source(/.*)?
102
103 cloud_what_var_cache_t
104
105 /var/cache/cloud-what(/.*)?
106
107 cluster_conf_t
108
109 /etc/cluster(/.*)?
110
111 cluster_var_lib_t
112
113 /var/lib/pcsd(/.*)?
114 /var/lib/cluster(/.*)?
115 /var/lib/openais(/.*)?
116 /var/lib/pengine(/.*)?
117 /var/lib/corosync(/.*)?
118 /usr/lib/heartbeat(/.*)?
119 /var/lib/heartbeat(/.*)?
120 /var/lib/pacemaker(/.*)?
121
122 cluster_var_run_t
123
124 /var/run/crm(/.*)?
125 /var/run/cman_.*
126 /var/run/rsctmp(/.*)?
127 /var/run/aisexec.*
128 /var/run/heartbeat(/.*)?
129 /var/run/pcsd-ruby.socket
130 /var/run/corosync-qnetd(/.*)?
131 /var/run/corosync-qdevice(/.*)?
132 /var/run/corosync.pid
133 /var/run/cpglockd.pid
134 /var/run/rgmanager.pid
135 /var/run/cluster/rgmanager.sk
136
137 rhnsd_conf_t
138
139 /etc/sysconfig/rhn(/.*)?
140
141 rhsmcertd_config_t
142
143 /etc/rhsm(/.*)?
144
145 rhsmcertd_lock_t
146
147 /var/lock/subsys/rhsmcertd
148
149 rhsmcertd_log_t
150
151 /var/log/rhsm(/.*)?
152
153 rhsmcertd_tmp_t
154
155
156 rhsmcertd_tmpfs_t
157
158
159 rhsmcertd_var_lib_t
160
161 /var/lib/rhsm(/.*)?
162
163 rhsmcertd_var_run_t
164
165 /var/run/rhsm(/.*)?
166
167 root_t
168
169 /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
170 /
171 /initrd
172
173 rpm_log_t
174
175 /var/log/dnf.log.*
176 /var/log/dnf.rpm.log.*
177 /var/log/dnf.librepo.log.*
178 /var/log/hawkey.*
179 /var/log/up2date.*
180 /var/log/yum.log.*
181
182 rpm_var_cache_t
183
184 /var/cache/dnf(/.*)?
185 /var/cache/yum(/.*)?
186 /var/spool/up2date(/.*)?
187 /var/cache/PackageKit(/.*)?
188
189 rpm_var_lib_t
190
191 /var/lib/dnf(/.*)?
192 /var/lib/rpm(/.*)?
193 /var/lib/yum(/.*)?
194 /var/lib/PackageKit(/.*)?
195 /usr/lib/sysimage/rpm(/.*)?
196 /var/lib/alternatives(/.*)?
197 /var/lib/rpmrebuilddb.*(/.*)?
198
199 rtas_errd_var_lock_t
200
201 /var/lock/.*librtas
202 /var/lock/subsys/rtas_errd
203
204 var_lock_t
205
206 /run/lock(/.*)?
207 /var/lock
208 /var/lock
209
210
212 SELinux requires files to have an extended attribute to define the file
213 type.
214
215 You can see the context of a file using the -Z option to ls
216
217 Policy governs the access confined processes have to these files.
218 SELinux rhsmcertd policy is very flexible allowing users to setup their
219 rhsmcertd processes in as secure a method as possible.
220
221 STANDARD FILE CONTEXT
222
223 SELinux defines the file context types for the rhsmcertd, if you wanted
224 to store files with these types in a diffent paths, you need to execute
225 the semanage command to specify alternate labeling and then use re‐
226 storecon to put the labels on disk.
227
228 semanage fcontext -a -t rhsmcertd_config_t '/srv/myrhsmcertd_con‐
229 tent(/.*)?'
230 restorecon -R -v /srv/myrhsmcertd_content
231
232 Note: SELinux often uses regular expressions to specify labels that
233 match multiple files.
234
235 The following file types are defined for rhsmcertd:
236
237
238
239 rhsmcertd_config_t
240
241 - Set files with the rhsmcertd_config_t type, if you want to treat the
242 files as rhsmcertd configuration data, usually stored under the /etc
243 directory.
244
245
246
247 rhsmcertd_exec_t
248
249 - Set files with the rhsmcertd_exec_t type, if you want to transition
250 an executable to the rhsmcertd_t domain.
251
252
253 Paths:
254 /usr/bin/rhsmcertd, /usr/libexec/rhsmd, /usr/libexec/rhsm-service,
255 /usr/libexec/rhsm-facts-service
256
257
258 rhsmcertd_initrc_exec_t
259
260 - Set files with the rhsmcertd_initrc_exec_t type, if you want to tran‐
261 sition an executable to the rhsmcertd_initrc_t domain.
262
263
264
265 rhsmcertd_lock_t
266
267 - Set files with the rhsmcertd_lock_t type, if you want to treat the
268 files as rhsmcertd lock data, stored under the /var/lock directory
269
270
271
272 rhsmcertd_log_t
273
274 - Set files with the rhsmcertd_log_t type, if you want to treat the
275 data as rhsmcertd log data, usually stored under the /var/log direc‐
276 tory.
277
278
279
280 rhsmcertd_tmp_t
281
282 - Set files with the rhsmcertd_tmp_t type, if you want to store rhsm‐
283 certd temporary files in the /tmp directories.
284
285
286
287 rhsmcertd_tmpfs_t
288
289 - Set files with the rhsmcertd_tmpfs_t type, if you want to store rhsm‐
290 certd files on a tmpfs file system.
291
292
293
294 rhsmcertd_var_lib_t
295
296 - Set files with the rhsmcertd_var_lib_t type, if you want to store the
297 rhsmcertd files under the /var/lib directory.
298
299
300
301 rhsmcertd_var_run_t
302
303 - Set files with the rhsmcertd_var_run_t type, if you want to store the
304 rhsmcertd files under the /run or /var/run directory.
305
306
307
308 Note: File context can be temporarily modified with the chcon command.
309 If you want to permanently change the file context you need to use the
310 semanage fcontext command. This will modify the SELinux labeling data‐
311 base. You will need to use restorecon to apply the labels.
312
313
315 semanage fcontext can also be used to manipulate default file context
316 mappings.
317
318 semanage permissive can also be used to manipulate whether or not a
319 process type is permissive.
320
321 semanage module can also be used to enable/disable/install/remove pol‐
322 icy modules.
323
324 semanage boolean can also be used to manipulate the booleans
325
326
327 system-config-selinux is a GUI tool available to customize SELinux pol‐
328 icy settings.
329
330
332 This manual page was auto-generated using sepolicy manpage .
333
334
336 selinux(8), rhsmcertd(8), semanage(8), restorecon(8), chcon(1), sepol‐
337 icy(8), setsebool(8)
338
339
340
341rhsmcertd 23-02-03 rhsmcertd_selinux(8)