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/sm-notify,
28 /usr/sbin/rpc.idmapd, /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 rpcd_t to manage fuse files, you must turn on the
58 rpcd_use_fusefs boolean. Disabled by default.
59
60 setsebool -P rpcd_use_fusefs 1
61
62
63
64 If you want to allow all domains to execute in fips_mode, you must turn
65 on the fips_mode boolean. Enabled by default.
66
67 setsebool -P fips_mode 1
68
69
70
72 The SELinux process type rpcd_t can manage files labeled with the fol‐
73 lowing file types. The paths listed are the default paths for these
74 file types. Note the processes UID still need to have DAC permissions.
75
76 cluster_conf_t
77
78 /etc/cluster(/.*)?
79
80 cluster_var_lib_t
81
82 /var/lib/pcsd(/.*)?
83 /var/lib/cluster(/.*)?
84 /var/lib/openais(/.*)?
85 /var/lib/pengine(/.*)?
86 /var/lib/corosync(/.*)?
87 /usr/lib/heartbeat(/.*)?
88 /var/lib/heartbeat(/.*)?
89 /var/lib/pacemaker(/.*)?
90
91 cluster_var_run_t
92
93 /var/run/crm(/.*)?
94 /var/run/cman_.*
95 /var/run/rsctmp(/.*)?
96 /var/run/aisexec.*
97 /var/run/heartbeat(/.*)?
98 /var/run/corosync-qnetd(/.*)?
99 /var/run/corosync-qdevice(/.*)?
100 /var/run/corosync.pid
101 /var/run/cpglockd.pid
102 /var/run/rgmanager.pid
103 /var/run/cluster/rgmanager.sk
104
105 fusefs_t
106
107 /var/run/user/[^/]*/gvfs
108
109 quota_db_t
110
111 /a?quota.(user|group)
112 /etc/a?quota.(user|group)
113 /var/a?quota.(user|group)
114 /boot/a?quota.(user|group)
115 /var/spool/(.*/)?a?quota.(user|group)
116 /var/spool/cron/a?quota.(user|group)
117 /var/lib/openshift/a?quota.(user|group)
118 /var/lib/stickshift/a?quota.(user|group)
119 /home/[^/]+/a?quota.(user|group)
120 /home/a?quota.(user|group)
121
122 root_t
123
124 /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
125 /
126 /initrd
127
128 rpcd_lock_t
129
130 /var/run/rpc.statd.lock
131
132 rpcd_var_run_t
133
134 /var/run/sm-notify.*
135 /var/run/rpc.statd(/.*)?
136 /var/run/rpc.statd.pid
137
138 var_lib_nfs_t
139
140 /var/lib/nfs(/.*)?
141
142 var_lib_t
143
144 /opt/(.*/)?var/lib(/.*)?
145 /var/lib(/.*)?
146
147
149 SELinux requires files to have an extended attribute to define the file
150 type.
151
152 You can see the context of a file using the -Z option to ls
153
154 Policy governs the access confined processes have to these files.
155 SELinux rpcd policy is very flexible allowing users to setup their rpcd
156 processes in as secure a method as possible.
157
158 EQUIVALENCE DIRECTORIES
159
160
161 rpcd policy stores data with multiple different file context types
162 under the /var/run/rpc.statd directory. If you would like to store the
163 data in a different directory you can use the semanage command to cre‐
164 ate an equivalence mapping. If you wanted to store this data under the
165 /srv directory you would execute the following command:
166
167 semanage fcontext -a -e /var/run/rpc.statd /srv/rpc.statd
168 restorecon -R -v /srv/rpc.statd
169
170 STANDARD FILE CONTEXT
171
172 SELinux defines the file context types for the rpcd, if you wanted to
173 store files with these types in a diffent paths, you need to execute
174 the semanage command to sepecify alternate labeling and then use
175 restorecon to put the labels on disk.
176
177 semanage fcontext -a -t rpcd_unit_file_t '/srv/myrpcd_content(/.*)?'
178 restorecon -R -v /srv/myrpcd_content
179
180 Note: SELinux often uses regular expressions to specify labels that
181 match multiple files.
182
183 The following file types are defined for rpcd:
184
185
186
187 rpcd_exec_t
188
189 - Set files with the rpcd_exec_t type, if you want to transition an
190 executable to the rpcd_t domain.
191
192
193 Paths:
194 /sbin/rpc..*, /usr/sbin/rpc..*, /sbin/sm-notify, /usr/sbin/sm-
195 notify, /usr/sbin/rpc.idmapd, /usr/sbin/rpc.rquotad
196
197
198 rpcd_initrc_exec_t
199
200 - Set files with the rpcd_initrc_exec_t type, if you want to transition
201 an executable to the rpcd_initrc_t domain.
202
203
204 Paths:
205 /etc/rc.d/init.d/nfslock, /etc/rc.d/init.d/rpcidmapd
206
207
208 rpcd_lock_t
209
210 - Set files with the rpcd_lock_t type, if you want to treat the files
211 as rpcd lock data, stored under the /var/lock directory
212
213
214
215 rpcd_unit_file_t
216
217 - Set files with the rpcd_unit_file_t type, if you want to treat the
218 files as rpcd unit content.
219
220
221
222 rpcd_var_run_t
223
224 - Set files with the rpcd_var_run_t type, if you want to store the rpcd
225 files under the /run or /var/run directory.
226
227
228 Paths:
229 /var/run/sm-notify.*, /var/run/rpc.statd(/.*)?,
230 /var/run/rpc.statd.pid
231
232
233 Note: File context can be temporarily modified with the chcon command.
234 If you want to permanently change the file context you need to use the
235 semanage fcontext command. This will modify the SELinux labeling data‐
236 base. You will need to use restorecon to apply the labels.
237
238
240 semanage fcontext can also be used to manipulate default file context
241 mappings.
242
243 semanage permissive can also be used to manipulate whether or not a
244 process type is permissive.
245
246 semanage module can also be used to enable/disable/install/remove pol‐
247 icy modules.
248
249 semanage boolean can also be used to manipulate the booleans
250
251
252 system-config-selinux is a GUI tool available to customize SELinux pol‐
253 icy settings.
254
255
257 This manual page was auto-generated using sepolicy manpage .
258
259
261 selinux(8), rpcd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8),
262 setsebool(8)
263
264
265
266rpcd 20-05-05 rpcd_selinux(8)