1rpcd_selinux(8) SELinux Policy rpcd rpcd_selinux(8)
2
3
4
6 rpcd_selinux - Security Enhanced Linux Policy for the rpcd processes
7
9 Security-Enhanced Linux secures the rpcd processes via flexible manda‐
10 tory access control.
11
12 The rpcd processes execute with the rpcd_t SELinux type. You can check
13 if you have these processes running by executing the ps command with
14 the -Z qualifier.
15
16 For example:
17
18 ps -eZ | grep rpcd_t
19
20
21
23 The rpcd_t SELinux type can be entered via the rpcd_exec_t file type.
24
25 The default entrypoint paths for the rpcd_t domain are the following:
26
27 /sbin/rpc..*, /usr/sbin/rpc..*, /sbin/sm-notify, /usr/sbin/rpc.idmapd,
28 /usr/sbin/rpc.rquotad
29
31 SELinux defines process types (domains) for each process running on the
32 system
33
34 You can see the context of a process using the -Z option to ps
35
36 Policy governs the access confined processes have to files. SELinux
37 rpcd policy is very flexible allowing users to setup their rpcd pro‐
38 cesses in as secure a method as possible.
39
40 The following process types are defined for rpcd:
41
42 rpcd_t
43
44 Note: semanage permissive -a rpcd_t can be used to make the process
45 type rpcd_t permissive. SELinux does not deny access to permissive
46 process types, but the AVC (SELinux denials) messages are still gener‐
47 ated.
48
49
51 SELinux policy is customizable based on least access required. rpcd
52 policy is extremely flexible and has several booleans that allow you to
53 manipulate the policy and run rpcd with the tightest access possible.
54
55
56
57 If you want to allow all daemons to write corefiles to /, you must turn
58 on the allow_daemons_dump_core boolean. Disabled by default.
59
60 setsebool -P allow_daemons_dump_core 1
61
62
63
64 If you want to allow all daemons to use tcp wrappers, you must turn on
65 the allow_daemons_use_tcp_wrapper boolean. Disabled by default.
66
67 setsebool -P allow_daemons_use_tcp_wrapper 1
68
69
70
71 If you want to allow all daemons the ability to read/write terminals,
72 you must turn on the allow_daemons_use_tty boolean. Disabled by
73 default.
74
75 setsebool -P allow_daemons_use_tty 1
76
77
78
79 If you want to allow all domains to use other domains file descriptors,
80 you must turn on the allow_domain_fd_use boolean. Enabled by default.
81
82 setsebool -P allow_domain_fd_use 1
83
84
85
86 If you want to allow confined applications to run with kerberos, you
87 must turn on the allow_kerberos boolean. Enabled by default.
88
89 setsebool -P allow_kerberos 1
90
91
92
93 If you want to allow sysadm to debug or ptrace all processes, you must
94 turn on the allow_ptrace boolean. Disabled by default.
95
96 setsebool -P allow_ptrace 1
97
98
99
100 If you want to allow system to run with NIS, you must turn on the
101 allow_ypbind boolean. Disabled by default.
102
103 setsebool -P allow_ypbind 1
104
105
106
107 If you want to enable cluster mode for daemons, you must turn on the
108 daemons_enable_cluster_mode boolean. Disabled by default.
109
110 setsebool -P daemons_enable_cluster_mode 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
136 If you want to enable support for upstart as the init program, you must
137 turn on the init_upstart boolean. Enabled by default.
138
139 setsebool -P init_upstart 1
140
141
142
143 If you want to allow confined applications to use nscd shared memory,
144 you must turn on the nscd_use_shm boolean. Enabled by default.
145
146 setsebool -P nscd_use_shm 1
147
148
149
151 The SELinux process type rpcd_t can manage files labeled with the fol‐
152 lowing file types. The paths listed are the default paths for these
153 file types. Note the processes UID still need to have DAC permissions.
154
155 cluster_conf_t
156
157 /etc/cluster(/.*)?
158
159 cluster_tmp_t
160
161
162 cluster_var_lib_t
163
164 /var/lib(64)?/openais(/.*)?
165 /var/lib(64)?/pengine(/.*)?
166 /var/lib(64)?/corosync(/.*)?
167 /usr/lib(64)?/heartbeat(/.*)?
168 /var/lib(64)?/heartbeat(/.*)?
169 /var/lib(64)?/pacemaker(/.*)?
170 /var/lib/cluster(/.*)?
171
172 cluster_var_run_t
173
174 /var/run/crm(/.*)?
175 /var/run/cman_.*
176 /var/run/rsctmp(/.*)?
177 /var/run/aisexec.*
178 /var/run/heartbeat(/.*)?
179 /var/run/cpglockd.pid
180 /var/run/corosync.pid
181 /var/run/rgmanager.pid
182 /var/run/cluster/rgmanager.sk
183
184 initrc_tmp_t
185
186
187 mnt_t
188
189 /mnt(/[^/]*)
190 /mnt(/[^/]*)?
191 /rhev(/[^/]*)?
192 /media(/[^/]*)
193 /media(/[^/]*)?
194 /etc/rhgb(/.*)?
195 /media/.hal-.*
196 /net
197 /afs
198 /rhev
199 /misc
200
201 root_t
202
203 /
204 /initrd
205
206 rpcd_var_run_t
207
208 /var/run/rpc.statd(/.*)?
209 /var/run/rpc.statd.pid
210
211 tmp_t
212
213 /tmp
214 /usr/tmp
215 /var/tmp
216 /tmp-inst
217 /var/tmp-inst
218 /var/tmp/vi.recover
219
220 var_lib_nfs_t
221
222 /var/lib/nfs(/.*)?
223
224 var_lib_t
225
226 /opt/(.*/)?var/lib(64)?(/.*)?
227 /var/lib(/.*)?
228
229
231 SELinux requires files to have an extended attribute to define the file
232 type.
233
234 You can see the context of a file using the -Z option to ls
235
236 Policy governs the access confined processes have to these files.
237 SELinux rpcd policy is very flexible allowing users to setup their rpcd
238 processes in as secure a method as possible.
239
240 EQUIVALENCE DIRECTORIES
241
242
243 rpcd policy stores data with multiple different file context types
244 under the /var/run/rpc.statd directory. If you would like to store the
245 data in a different directory you can use the semanage command to cre‐
246 ate an equivalence mapping. If you wanted to store this data under the
247 /srv dirctory you would execute the following command:
248
249 semanage fcontext -a -e /var/run/rpc.statd /srv/rpc.statd
250 restorecon -R -v /srv/rpc.statd
251
252 STANDARD FILE CONTEXT
253
254 SELinux defines the file context types for the rpcd, if you wanted to
255 store files with these types in a diffent paths, you need to execute
256 the semanage command to sepecify alternate labeling and then use
257 restorecon to put the labels on disk.
258
259 semanage fcontext -a -t rpcd_var_run_t '/srv/myrpcd_content(/.*)?'
260 restorecon -R -v /srv/myrpcd_content
261
262 Note: SELinux often uses regular expressions to specify labels that
263 match multiple files.
264
265 The following file types are defined for rpcd:
266
267
268
269 rpcd_exec_t
270
271 - Set files with the rpcd_exec_t type, if you want to transition an
272 executable to the rpcd_t domain.
273
274
275 Paths:
276 /sbin/rpc..*, /usr/sbin/rpc..*, /sbin/sm-notify,
277 /usr/sbin/rpc.idmapd, /usr/sbin/rpc.rquotad
278
279
280 rpcd_initrc_exec_t
281
282 - Set files with the rpcd_initrc_exec_t type, if you want to transition
283 an executable to the rpcd_initrc_t domain.
284
285
286 Paths:
287 /etc/rc.d/init.d/nfslock, /etc/rc.d/init.d/rpcidmapd
288
289
290 rpcd_var_run_t
291
292 - Set files with the rpcd_var_run_t type, if you want to store the rpcd
293 files under the /run or /var/run directory.
294
295
296 Paths:
297 /var/run/rpc.statd(/.*)?, /var/run/rpc.statd.pid
298
299
300 Note: File context can be temporarily modified with the chcon command.
301 If you want to permanently change the file context you need to use the
302 semanage fcontext command. This will modify the SELinux labeling data‐
303 base. You will need to use restorecon to apply the labels.
304
305
307 semanage fcontext can also be used to manipulate default file context
308 mappings.
309
310 semanage permissive can also be used to manipulate whether or not a
311 process type is permissive.
312
313 semanage module can also be used to enable/disable/install/remove pol‐
314 icy modules.
315
316 semanage boolean can also be used to manipulate the booleans
317
318
319 system-config-selinux is a GUI tool available to customize SELinux pol‐
320 icy settings.
321
322
324 This manual page was auto-generated using sepolicy manpage .
325
326
328 selinux(8), rpcd(8), semanage(8), restorecon(8), chcon(1) , setse‐
329 bool(8)
330
331
332
333rpcd 15-06-03 rpcd_selinux(8)