1dhcpc_selinux(8) SELinux Policy dhcpc dhcpc_selinux(8)
2
3
4
6 dhcpc_selinux - Security Enhanced Linux Policy for the dhcpc processes
7
9 Security-Enhanced Linux secures the dhcpc processes via flexible manda‐
10 tory access control.
11
12 The dhcpc processes execute with the dhcpc_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 dhcpc_t
19
20
21
23 The dhcpc_t SELinux type can be entered via the dhcpc_exec_t file type.
24
25 The default entrypoint paths for the dhcpc_t domain are the following:
26
27 /sbin/dhclient.*, /usr/sbin/dhclient.*, /sbin/pump, /sbin/dhcdbd,
28 /sbin/dhcpcd, /usr/sbin/pump, /usr/sbin/dhcdbd, /usr/sbin/dhcpcd
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 dhcpc policy is very flexible allowing users to setup their dhcpc pro‐
38 cesses in as secure a method as possible.
39
40 The following process types are defined for dhcpc:
41
42 dhcpc_t
43
44 Note: semanage permissive -a dhcpc_t can be used to make the process
45 type dhcpc_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. dhcpc
52 policy is extremely flexible and has several booleans that allow you to
53 manipulate the policy and run dhcpc with the tightest access possible.
54
55
56
57 If you want to allow dhcpc client applications to execute iptables com‐
58 mands, you must turn on the dhcpc_exec_iptables boolean. Disabled by
59 default.
60
61 setsebool -P dhcpc_exec_iptables 1
62
63
64
65 If you want to allow all domains to execute in fips_mode, you must turn
66 on the fips_mode boolean. Enabled by default.
67
68 setsebool -P fips_mode 1
69
70
71
73 SELinux defines port types to represent TCP and UDP ports.
74
75 You can see the types associated with a port by using the following
76 command:
77
78 semanage port -l
79
80
81 Policy governs the access confined processes have to these ports.
82 SELinux dhcpc policy is very flexible allowing users to setup their
83 dhcpc processes in as secure a method as possible.
84
85 The following port types are defined for dhcpc:
86
87
88 dhcpc_port_t
89
90
91
92 Default Defined Ports:
93 tcp 68,546,5546
94 udp 68,546,5546
95
97 The SELinux process type dhcpc_t can manage files labeled with the fol‐
98 lowing file types. The paths listed are the default paths for these
99 file types. Note the processes UID still need to have DAC permissions.
100
101 NetworkManager_var_lib_t
102
103 /var/lib/wicd(/.*)?
104 /var/lib/NetworkManager(/.*)?
105 /etc/dhcp/wired-settings.conf
106 /etc/wicd/wired-settings.conf
107 /etc/dhcp/manager-settings.conf
108 /etc/wicd/manager-settings.conf
109 /etc/dhcp/wireless-settings.conf
110 /etc/wicd/wireless-settings.conf
111
112 NetworkManager_var_run_t
113
114 /var/run/teamd(/.*)?
115 /var/run/nm-xl2tpd.conf.*
116 /var/run/nm-dhclient.*
117 /var/run/NetworkManager(/.*)?
118 /var/run/wpa_supplicant(/.*)?
119 /var/run/wicd.pid
120 /var/run/NetworkManager.pid
121 /var/run/nm-dns-dnsmasq.conf
122 /var/run/wpa_supplicant-global
123
124 chronyd_var_run_t
125
126 /var/run/chrony(/.*)?
127 /var/run/chronyd(/.*)?
128 /var/run/chrony-dhcp(/.*)?
129 /var/run/chrony-helper(/.*)?
130 /var/run/chronyd.pid
131 /var/run/chronyd.sock
132
133 cluster_conf_t
134
135 /etc/cluster(/.*)?
136
137 cluster_var_lib_t
138
139 /var/lib/pcsd(/.*)?
140 /var/lib/cluster(/.*)?
141 /var/lib/openais(/.*)?
142 /var/lib/pengine(/.*)?
143 /var/lib/corosync(/.*)?
144 /usr/lib/heartbeat(/.*)?
145 /var/lib/heartbeat(/.*)?
146 /var/lib/pacemaker(/.*)?
147
148 cluster_var_run_t
149
150 /var/run/crm(/.*)?
151 /var/run/cman_.*
152 /var/run/rsctmp(/.*)?
153 /var/run/aisexec.*
154 /var/run/heartbeat(/.*)?
155 /var/run/pcsd-ruby.socket
156 /var/run/corosync-qnetd(/.*)?
157 /var/run/corosync-qdevice(/.*)?
158 /var/run/corosync.pid
159 /var/run/cpglockd.pid
160 /var/run/rgmanager.pid
161 /var/run/cluster/rgmanager.sk
162
163 dhcpc_state_t
164
165 /var/lib/dhcp3?/dhclient.*
166 /var/lib/dhcpcd(/.*)?
167 /var/lib/dhclient(/.*)?
168 /var/lib/wifiroamd(/.*)?
169
170 dhcpc_var_run_t
171
172 /var/run/dhcpcd(/.*)?
173 /var/run/dhclient.*
174
175 initrc_var_run_t
176
177 /var/run/utmp
178 /var/run/random-seed
179 /var/run/runlevel.dir
180 /var/run/setmixer_flag
181
182 krb5_host_rcache_t
183
184 /var/tmp/krb5_0.rcache2
185 /var/cache/krb5rcache(/.*)?
186 /var/tmp/nfs_0
187 /var/tmp/DNS_25
188 /var/tmp/host_0
189 /var/tmp/imap_0
190 /var/tmp/HTTP_23
191 /var/tmp/HTTP_48
192 /var/tmp/ldap_55
193 /var/tmp/ldap_487
194 /var/tmp/ldapmap1_0
195
196 root_t
197
198 /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
199 /
200 /initrd
201
202 systemd_passwd_var_run_t
203
204 /var/run/systemd/ask-password(/.*)?
205 /var/run/systemd/ask-password-block(/.*)?
206
207 virt_lxc_var_run_t
208
209 /var/run/libvirt/lxc(/.*)?
210 /var/run/libvirt-sandbox(/.*)?
211
212 virt_var_run_t
213
214 /var/vdsm(/.*)?
215 /var/run/vdsm(/.*)?
216 /var/run/libvirt(/.*)?
217 /var/run/libvirtd.pid
218 /var/run/qemu-pr-helper.sock
219
220
222 SELinux requires files to have an extended attribute to define the file
223 type.
224
225 You can see the context of a file using the -Z option to ls
226
227 Policy governs the access confined processes have to these files.
228 SELinux dhcpc policy is very flexible allowing users to setup their
229 dhcpc processes in as secure a method as possible.
230
231 STANDARD FILE CONTEXT
232
233 SELinux defines the file context types for the dhcpc, if you wanted to
234 store files with these types in a diffent paths, you need to execute
235 the semanage command to specify alternate labeling and then use re‐
236 storecon to put the labels on disk.
237
238 semanage fcontext -a -t dhcpc_var_run_t '/srv/mydhcpc_content(/.*)?'
239 restorecon -R -v /srv/mydhcpc_content
240
241 Note: SELinux often uses regular expressions to specify labels that
242 match multiple files.
243
244 The following file types are defined for dhcpc:
245
246
247
248 dhcpc_exec_t
249
250 - Set files with the dhcpc_exec_t type, if you want to transition an
251 executable to the dhcpc_t domain.
252
253
254 Paths:
255 /sbin/dhclient.*, /usr/sbin/dhclient.*, /sbin/pump, /sbin/dhcdbd,
256 /sbin/dhcpcd, /usr/sbin/pump, /usr/sbin/dhcdbd, /usr/sbin/dhcpcd
257
258
259 dhcpc_helper_exec_t
260
261 - Set files with the dhcpc_helper_exec_t type, if you want to transi‐
262 tion an executable to the dhcpc_helper_t domain.
263
264
265
266 dhcpc_state_t
267
268 - Set files with the dhcpc_state_t type, if you want to treat the files
269 as dhcpc state data.
270
271
272 Paths:
273 /var/lib/dhcp3?/dhclient.*, /var/lib/dhcpcd(/.*)?,
274 /var/lib/dhclient(/.*)?, /var/lib/wifiroamd(/.*)?
275
276
277 dhcpc_tmp_t
278
279 - Set files with the dhcpc_tmp_t type, if you want to store dhcpc tem‐
280 porary files in the /tmp directories.
281
282
283
284 dhcpc_var_run_t
285
286 - Set files with the dhcpc_var_run_t type, if you want to store the
287 dhcpc files under the /run or /var/run directory.
288
289
290 Paths:
291 /var/run/dhcpcd(/.*)?, /var/run/dhclient.*
292
293
294 Note: File context can be temporarily modified with the chcon command.
295 If you want to permanently change the file context you need to use the
296 semanage fcontext command. This will modify the SELinux labeling data‐
297 base. You will need to use restorecon to apply the labels.
298
299
301 semanage fcontext can also be used to manipulate default file context
302 mappings.
303
304 semanage permissive can also be used to manipulate whether or not a
305 process type is permissive.
306
307 semanage module can also be used to enable/disable/install/remove pol‐
308 icy modules.
309
310 semanage port can also be used to manipulate the port definitions
311
312 semanage boolean can also be used to manipulate the booleans
313
314
315 system-config-selinux is a GUI tool available to customize SELinux pol‐
316 icy settings.
317
318
320 This manual page was auto-generated using sepolicy manpage .
321
322
324 selinux(8), dhcpc(8), semanage(8), restorecon(8), chcon(1), sepol‐
325 icy(8), setsebool(8)
326
327
328
329dhcpc 23-02-03 dhcpc_selinux(8)