1NetworkManager_selinux(8)SELinux Policy NetworkManagerNetworkManager_selinux(8)
2
3
4
6 NetworkManager_selinux - Security Enhanced Linux Policy for the Net‐
7 workManager processes
8
10 Security-Enhanced Linux secures the NetworkManager processes via flexi‐
11 ble mandatory access control.
12
13 The NetworkManager processes execute with the NetworkManager_t SELinux
14 type. You can check if you have these processes running by executing
15 the ps command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep NetworkManager_t
20
21
22
24 The NetworkManager_t SELinux type can be entered via the NetworkMan‐
25 ager_exec_t file type.
26
27 The default entrypoint paths for the NetworkManager_t domain are the
28 following:
29
30 /usr/s?bin/NetworkManager, /usr/s?bin/wpa_supplicant, /usr/sbin/wicd,
31 /sbin/wpa_supplicant, /usr/sbin/nm-system-settings, /usr/sbin/Network‐
32 ManagerDispatcher
33
35 SELinux defines process types (domains) for each process running on the
36 system
37
38 You can see the context of a process using the -Z option to ps
39
40 Policy governs the access confined processes have to files. SELinux
41 NetworkManager policy is very flexible allowing users to setup their
42 NetworkManager processes in as secure a method as possible.
43
44 The following process types are defined for NetworkManager:
45
46 NetworkManager_t
47
48 Note: semanage permissive -a NetworkManager_t can be used to make the
49 process type NetworkManager_t permissive. SELinux does not deny access
50 to permissive process types, but the AVC (SELinux denials) messages are
51 still generated.
52
53
55 SELinux policy is customizable based on least access required. Net‐
56 workManager policy is extremely flexible and has several booleans that
57 allow you to manipulate the policy and run NetworkManager with the
58 tightest access possible.
59
60
61
62 If you want to allow all daemons to write corefiles to /, you must turn
63 on the allow_daemons_dump_core boolean. Disabled by default.
64
65 setsebool -P allow_daemons_dump_core 1
66
67
68
69 If you want to allow all daemons to use tcp wrappers, you must turn on
70 the allow_daemons_use_tcp_wrapper boolean. Disabled by default.
71
72 setsebool -P allow_daemons_use_tcp_wrapper 1
73
74
75
76 If you want to allow all daemons the ability to read/write terminals,
77 you must turn on the allow_daemons_use_tty boolean. Disabled by
78 default.
79
80 setsebool -P allow_daemons_use_tty 1
81
82
83
84 If you want to allow all domains to use other domains file descriptors,
85 you must turn on the allow_domain_fd_use boolean. Enabled by default.
86
87 setsebool -P allow_domain_fd_use 1
88
89
90
91 If you want to allow confined applications to run with kerberos, you
92 must turn on the allow_kerberos boolean. Enabled by default.
93
94 setsebool -P allow_kerberos 1
95
96
97
98 If you want to allow sysadm to debug or ptrace all processes, you must
99 turn on the allow_ptrace boolean. Disabled by default.
100
101 setsebool -P allow_ptrace 1
102
103
104
105 If you want to allow system to run with NIS, you must turn on the
106 allow_ypbind boolean. Disabled by default.
107
108 setsebool -P allow_ypbind 1
109
110
111
112 If you want to enable cluster mode for daemons, you must turn on the
113 daemons_enable_cluster_mode boolean. Disabled by default.
114
115 setsebool -P daemons_enable_cluster_mode 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 enable support for upstart as the init program, you must
142 turn on the init_upstart boolean. Enabled by default.
143
144 setsebool -P init_upstart 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. Enabled by default.
150
151 setsebool -P nscd_use_shm 1
152
153
154
155 If you want to disable transitions to insmod, you must turn on the
156 secure_mode_insmod boolean. Disabled by default.
157
158 setsebool -P secure_mode_insmod 1
159
160
161
162 If you want to support NFS home directories, you must turn on the
163 use_nfs_home_dirs boolean. Disabled by default.
164
165 setsebool -P use_nfs_home_dirs 1
166
167
168
169 If you want to support SAMBA home directories, you must turn on the
170 use_samba_home_dirs boolean. Disabled by default.
171
172 setsebool -P use_samba_home_dirs 1
173
174
175
176 If you want to allow xguest to configure Network Manager and connect to
177 apache ports, you must turn on the xguest_connect_network boolean.
178 Enabled by default.
179
180 setsebool -P xguest_connect_network 1
181
182
183
185 The SELinux process type NetworkManager_t can manage files labeled with
186 the following file types. The paths listed are the default paths for
187 these file types. Note the processes UID still need to have DAC per‐
188 missions.
189
190 NetworkManager_log_t
191
192 /var/log/wicd(/.*)?
193 /var/log/wicd.log.*
194 /var/log/wpa_supplicant.*
195
196 NetworkManager_tmp_t
197
198
199 NetworkManager_var_lib_t
200
201 /var/lib/wicd(/.*)?
202 /etc/NetworkManager(/.*)?
203 /var/lib/NetworkManager(/.*)?
204 /etc/wicd/wired-settings.conf
205 /etc/wicd/manager-settings.conf
206 /etc/wicd/wireless-settings.conf
207 /etc/NetworkManager/system-connections(/.*)?
208
209 NetworkManager_var_run_t
210
211 /var/run/nm-dhclient.*
212 /var/run/wpa_supplicant(/.*)?
213 /var/run/NetworkManager(/.*)?
214 /var/run/NetworkManager.pid
215 /var/run/wpa_supplicant-global
216
217 cluster_conf_t
218
219 /etc/cluster(/.*)?
220
221 cluster_var_lib_t
222
223 /var/lib(64)?/openais(/.*)?
224 /var/lib(64)?/pengine(/.*)?
225 /var/lib(64)?/corosync(/.*)?
226 /usr/lib(64)?/heartbeat(/.*)?
227 /var/lib(64)?/heartbeat(/.*)?
228 /var/lib(64)?/pacemaker(/.*)?
229 /var/lib/cluster(/.*)?
230
231 cluster_var_run_t
232
233 /var/run/crm(/.*)?
234 /var/run/cman_.*
235 /var/run/rsctmp(/.*)?
236 /var/run/aisexec.*
237 /var/run/heartbeat(/.*)?
238 /var/run/cpglockd.pid
239 /var/run/corosync.pid
240 /var/run/rgmanager.pid
241 /var/run/cluster/rgmanager.sk
242
243 hald_log_t
244
245 /var/log/pm(/.*)?
246 /var/log/pm-.*.log.*
247
248 initrc_tmp_t
249
250
251 mnt_t
252
253 /mnt(/[^/]*)
254 /mnt(/[^/]*)?
255 /rhev(/[^/]*)?
256 /media(/[^/]*)
257 /media(/[^/]*)?
258 /etc/rhgb(/.*)?
259 /media/.hal-.*
260 /net
261 /afs
262 /rhev
263 /misc
264
265 named_cache_t
266
267 /var/named/data(/.*)?
268 /var/lib/unbound(/.*)?
269 /var/named/slaves(/.*)?
270 /var/named/dynamic(/.*)?
271 /var/named/chroot/var/tmp(/.*)?
272 /var/named/chroot/var/named/data(/.*)?
273 /var/named/chroot/var/named/slaves(/.*)?
274 /var/named/chroot/var/named/dynamic(/.*)?
275
276 net_conf_t
277
278 /etc/ntpd?.conf.*
279 /etc/yp.conf.*
280 /etc/denyhosts.*
281 /etc/hosts.deny.*
282 /etc/resolv.conf.*
283 /etc/ntp/step-tickers.*
284 /etc/sysconfig/networking(/.*)?
285 /etc/sysconfig/network-scripts(/.*)?
286 /etc/sysconfig/network-scripts/.*resolv.conf
287 /etc/hosts
288 /etc/ethers
289
290 pppd_var_run_t
291
292 /var/run/(i)?ppp.*pid[^/]*
293 /var/run/ppp(/.*)?
294 /var/run/pppd[0-9]*.tdb
295
296 root_t
297
298 /
299 /initrd
300
301 sysfs_t
302
303 /sys(/.*)?
304
305 tmp_t
306
307 /tmp
308 /usr/tmp
309 /var/tmp
310 /tmp-inst
311 /var/tmp-inst
312 /var/tmp/vi.recover
313
314
316 SELinux requires files to have an extended attribute to define the file
317 type.
318
319 You can see the context of a file using the -Z option to ls
320
321 Policy governs the access confined processes have to these files.
322 SELinux NetworkManager policy is very flexible allowing users to setup
323 their NetworkManager processes in as secure a method as possible.
324
325 EQUIVALENCE DIRECTORIES
326
327
328 NetworkManager policy stores data with multiple different file context
329 types under the /var/log/wicd directory. If you would like to store
330 the data in a different directory you can use the semanage command to
331 create an equivalence mapping. If you wanted to store this data under
332 the /srv dirctory you would execute the following command:
333
334 semanage fcontext -a -e /var/log/wicd /srv/wicd
335 restorecon -R -v /srv/wicd
336
337 NetworkManager policy stores data with multiple different file context
338 types under the /var/run/wpa_supplicant directory. If you would like
339 to store the data in a different directory you can use the semanage
340 command to create an equivalence mapping. If you wanted to store this
341 data under the /srv dirctory you would execute the following command:
342
343 semanage fcontext -a -e /var/run/wpa_supplicant /srv/wpa_supplicant
344 restorecon -R -v /srv/wpa_supplicant
345
346 NetworkManager policy stores data with multiple different file context
347 types under the /var/run/NetworkManager directory. If you would like
348 to store the data in a different directory you can use the semanage
349 command to create an equivalence mapping. If you wanted to store this
350 data under the /srv dirctory you would execute the following command:
351
352 semanage fcontext -a -e /var/run/NetworkManager /srv/NetworkManager
353 restorecon -R -v /srv/NetworkManager
354
355 STANDARD FILE CONTEXT
356
357 SELinux defines the file context types for the NetworkManager, if you
358 wanted to store files with these types in a diffent paths, you need to
359 execute the semanage command to sepecify alternate labeling and then
360 use restorecon to put the labels on disk.
361
362 semanage fcontext -a -t NetworkManager_var_run_t '/srv/myNetworkMan‐
363 ager_content(/.*)?'
364 restorecon -R -v /srv/myNetworkManager_content
365
366 Note: SELinux often uses regular expressions to specify labels that
367 match multiple files.
368
369 The following file types are defined for NetworkManager:
370
371
372
373 NetworkManager_exec_t
374
375 - Set files with the NetworkManager_exec_t type, if you want to transi‐
376 tion an executable to the NetworkManager_t domain.
377
378
379 Paths:
380 /usr/s?bin/NetworkManager, /usr/s?bin/wpa_supplicant,
381 /usr/sbin/wicd, /sbin/wpa_supplicant, /usr/sbin/nm-system-set‐
382 tings, /usr/sbin/NetworkManagerDispatcher
383
384
385 NetworkManager_initrc_exec_t
386
387 - Set files with the NetworkManager_initrc_exec_t type, if you want to
388 transition an executable to the NetworkManager_initrc_t domain.
389
390
391 Paths:
392 /etc/NetworkManager/dispatcher.d(/.*)?, /etc/rc.d/init.d/wicd,
393 /usr/libexec/nm-dispatcher.action
394
395
396 NetworkManager_log_t
397
398 - Set files with the NetworkManager_log_t type, if you want to treat
399 the data as NetworkManager log data, usually stored under the /var/log
400 directory.
401
402
403 Paths:
404 /var/log/wicd(/.*)?, /var/log/wicd.log.*, /var/log/wpa_suppli‐
405 cant.*
406
407
408 NetworkManager_tmp_t
409
410 - Set files with the NetworkManager_tmp_t type, if you want to store
411 NetworkManager temporary files in the /tmp directories.
412
413
414
415 NetworkManager_var_lib_t
416
417 - Set files with the NetworkManager_var_lib_t type, if you want to
418 store the NetworkManager files under the /var/lib directory.
419
420
421 Paths:
422 /var/lib/wicd(/.*)?, /etc/NetworkManager(/.*)?, /var/lib/Network‐
423 Manager(/.*)?, /etc/wicd/wired-settings.conf, /etc/wicd/manager-
424 settings.conf, /etc/wicd/wireless-settings.conf, /etc/NetworkMan‐
425 ager/system-connections(/.*)?
426
427
428 NetworkManager_var_run_t
429
430 - Set files with the NetworkManager_var_run_t type, if you want to
431 store the NetworkManager files under the /run or /var/run directory.
432
433
434 Paths:
435 /var/run/nm-dhclient.*, /var/run/wpa_supplicant(/.*)?,
436 /var/run/NetworkManager(/.*)?, /var/run/NetworkManager.pid,
437 /var/run/wpa_supplicant-global
438
439
440 Note: File context can be temporarily modified with the chcon command.
441 If you want to permanently change the file context you need to use the
442 semanage fcontext command. This will modify the SELinux labeling data‐
443 base. You will need to use restorecon to apply the labels.
444
445
447 semanage fcontext can also be used to manipulate default file context
448 mappings.
449
450 semanage permissive can also be used to manipulate whether or not a
451 process type is permissive.
452
453 semanage module can also be used to enable/disable/install/remove pol‐
454 icy modules.
455
456 semanage boolean can also be used to manipulate the booleans
457
458
459 system-config-selinux is a GUI tool available to customize SELinux pol‐
460 icy settings.
461
462
464 This manual page was auto-generated using sepolicy manpage .
465
466
468 selinux(8), NetworkManager(8), semanage(8), restorecon(8), chcon(1) ,
469 setsebool(8)
470
471
472
473NetworkManager 15-06-03 NetworkManager_selinux(8)