1NetworkManager_selinux(8)SELinux Policy NetworkManagerNetworkManager_selinux(8)
2
3
4

NAME

6       NetworkManager_selinux  -  Security  Enhanced Linux Policy for the Net‐
7       workManager processes
8

DESCRIPTION

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

ENTRYPOINTS

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/libexec/nm-dispatcher.*,      /usr/bin/teamd,      /usr/sbin/wicd,
31       /usr/bin/NetworkManager, /usr/bin/wpa_supplicant, /usr/sbin/NetworkMan‐
32       ager,      /usr/sbin/wpa_supplicant,      /usr/sbin/nm-system-settings,
33       /usr/sbin/NetworkManagerDispatcher
34

PROCESS TYPES

36       SELinux defines process types (domains) for each process running on the
37       system
38
39       You can see the context of a process using the -Z option to ps
40
41       Policy  governs  the  access confined processes have to files.  SELinux
42       NetworkManager policy is very flexible allowing users  to  setup  their
43       NetworkManager processes in as secure a method as possible.
44
45       The following process types are defined for NetworkManager:
46
47       NetworkManager_t
48
49       Note:  semanage  permissive -a NetworkManager_t can be used to make the
50       process type NetworkManager_t permissive. SELinux does not deny  access
51       to permissive process types, but the AVC (SELinux denials) messages are
52       still generated.
53
54

BOOLEANS

56       SELinux policy is customizable based on least  access  required.   Net‐
57       workManager  policy is extremely flexible and has several booleans that
58       allow you to manipulate the policy  and  run  NetworkManager  with  the
59       tightest access possible.
60
61
62
63       If you want to allow users to resolve user passwd entries directly from
64       ldap rather then using a sssd server, you  must  turn  on  the  authlo‐
65       gin_nsswitch_use_ldap boolean. Disabled by default.
66
67       setsebool -P authlogin_nsswitch_use_ldap 1
68
69
70
71       If you want to allow all daemons to write corefiles to /, you must turn
72       on the daemons_dump_core boolean. Disabled by default.
73
74       setsebool -P daemons_dump_core 1
75
76
77
78       If you want to enable cluster mode for daemons, you must  turn  on  the
79       daemons_enable_cluster_mode boolean. Enabled by default.
80
81       setsebool -P daemons_enable_cluster_mode 1
82
83
84
85       If  you want to allow all daemons to use tcp wrappers, you must turn on
86       the daemons_use_tcp_wrapper boolean. Disabled by default.
87
88       setsebool -P daemons_use_tcp_wrapper 1
89
90
91
92       If you want to allow all daemons the ability to  read/write  terminals,
93       you must turn on the daemons_use_tty boolean. Disabled by default.
94
95       setsebool -P daemons_use_tty 1
96
97
98
99       If  you  want  to deny any process from ptracing or debugging any other
100       processes, you  must  turn  on  the  deny_ptrace  boolean.  Enabled  by
101       default.
102
103       setsebool -P deny_ptrace 1
104
105
106
107       If  you  want  to  allow  any  process  to mmap any file on system with
108       attribute file_type, you must turn on the  domain_can_mmap_files  bool‐
109       ean. Enabled by default.
110
111       setsebool -P domain_can_mmap_files 1
112
113
114
115       If  you want to allow all domains write to kmsg_device, while kernel is
116       executed with systemd.log_target=kmsg parameter, you must turn  on  the
117       domain_can_write_kmsg boolean. Disabled by default.
118
119       setsebool -P domain_can_write_kmsg 1
120
121
122
123       If you want to allow all domains to use other domains file descriptors,
124       you must turn on the domain_fd_use boolean. Enabled by default.
125
126       setsebool -P domain_fd_use 1
127
128
129
130       If you want to allow all domains to have the kernel load  modules,  you
131       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
132       default.
133
134       setsebool -P domain_kernel_load_modules 1
135
136
137
138       If you want to allow all domains to execute in fips_mode, you must turn
139       on the fips_mode boolean. Enabled by default.
140
141       setsebool -P fips_mode 1
142
143
144
145       If you want to enable reading of urandom for all domains, you must turn
146       on the global_ssp boolean. Disabled by default.
147
148       setsebool -P global_ssp 1
149
150
151
152       If you want to allow confined applications to run  with  kerberos,  you
153       must turn on the kerberos_enabled boolean. Enabled by default.
154
155       setsebool -P kerberos_enabled 1
156
157
158
159       If  you  want  to  allow  system  to run with NIS, you must turn on the
160       nis_enabled boolean. Disabled by default.
161
162       setsebool -P nis_enabled 1
163
164
165
166       If you want to allow confined applications to use nscd  shared  memory,
167       you must turn on the nscd_use_shm boolean. Disabled by default.
168
169       setsebool -P nscd_use_shm 1
170
171
172
173       If  you want to support ecryptfs home directories, you must turn on the
174       use_ecryptfs_home_dirs boolean. Disabled by default.
175
176       setsebool -P use_ecryptfs_home_dirs 1
177
178
179
180       If you want to support NFS home  directories,  you  must  turn  on  the
181       use_nfs_home_dirs boolean. Disabled by default.
182
183       setsebool -P use_nfs_home_dirs 1
184
185
186
187       If  you  want  to  support SAMBA home directories, you must turn on the
188       use_samba_home_dirs boolean. Disabled by default.
189
190       setsebool -P use_samba_home_dirs 1
191
192
193
194       If you want to allow xguest users to configure Network Manager and con‐
195       nect to apache ports, you must turn on the xguest_connect_network bool‐
196       ean. Enabled by default.
197
198       setsebool -P xguest_connect_network 1
199
200
201

MANAGED FILES

203       The SELinux process type NetworkManager_t can manage files labeled with
204       the  following  file types.  The paths listed are the default paths for
205       these file types.  Note the processes UID still need to have  DAC  per‐
206       missions.
207
208       NetworkManager_etc_rw_t
209
210            /etc/NetworkManager/system-connections(/.*)?
211            /etc/NetworkManager/NetworkManager.conf
212
213       NetworkManager_tmp_t
214
215
216       NetworkManager_var_lib_t
217
218            /var/lib/wicd(/.*)?
219            /var/lib/NetworkManager(/.*)?
220            /etc/dhcp/wired-settings.conf
221            /etc/wicd/wired-settings.conf
222            /etc/dhcp/manager-settings.conf
223            /etc/wicd/manager-settings.conf
224            /etc/dhcp/wireless-settings.conf
225            /etc/wicd/wireless-settings.conf
226
227       NetworkManager_var_run_t
228
229            /var/run/teamd(/.*)?
230            /var/run/nm-xl2tpd.conf.*
231            /var/run/nm-dhclient.*
232            /var/run/NetworkManager(/.*)?
233            /var/run/wpa_supplicant(/.*)?
234            /var/run/wicd.pid
235            /var/run/NetworkManager.pid
236            /var/run/nm-dns-dnsmasq.conf
237            /var/run/wpa_supplicant-global
238
239       cluster_conf_t
240
241            /etc/cluster(/.*)?
242
243       cluster_var_lib_t
244
245            /var/lib/pcsd(/.*)?
246            /var/lib/cluster(/.*)?
247            /var/lib/openais(/.*)?
248            /var/lib/pengine(/.*)?
249            /var/lib/corosync(/.*)?
250            /usr/lib/heartbeat(/.*)?
251            /var/lib/heartbeat(/.*)?
252            /var/lib/pacemaker(/.*)?
253
254       cluster_var_run_t
255
256            /var/run/crm(/.*)?
257            /var/run/cman_.*
258            /var/run/rsctmp(/.*)?
259            /var/run/aisexec.*
260            /var/run/heartbeat(/.*)?
261            /var/run/corosync-qnetd(/.*)?
262            /var/run/corosync-qdevice(/.*)?
263            /var/run/cpglockd.pid
264            /var/run/corosync.pid
265            /var/run/rgmanager.pid
266            /var/run/cluster/rgmanager.sk
267
268       hostname_etc_t
269
270            /etc/hostname
271            /etc/machine-info
272
273       named_cache_t
274
275            /var/named/data(/.*)?
276            /var/lib/softhsm(/.*)?
277            /var/lib/unbound(/.*)?
278            /var/named/slaves(/.*)?
279            /var/named/dynamic(/.*)?
280            /var/named/chroot/var/tmp(/.*)?
281            /var/named/chroot/var/named/data(/.*)?
282            /var/named/chroot/var/named/slaves(/.*)?
283            /var/named/chroot/var/named/dynamic(/.*)?
284
285       net_conf_t
286
287            /etc/hosts[^/]*
288            /etc/yp.conf.*
289            /etc/denyhosts.*
290            /etc/hosts.deny.*
291            /etc/resolv.conf.*
292            /etc/.resolv.conf.*
293            /etc/resolv-secure.conf.*
294            /var/run/systemd/network(/.*)?
295            /etc/sysconfig/networking(/.*)?
296            /etc/sysconfig/network-scripts(/.*)?
297            /etc/sysconfig/network-scripts/.*resolv.conf
298            /var/run/NetworkManager/resolv.conf.*
299            /etc/ethers
300            /etc/ntp.conf
301            /var/run/systemd/resolve/resolv.conf
302
303       pppd_var_run_t
304
305            /var/run/(i)?ppp.*pid[^/]*
306            /var/run/ppp(/.*)?
307            /var/run/pppd[0-9]*.tdb
308
309       root_t
310
311            /sysroot/ostree/deploy/.*-atomic.*/deploy(/.*)?
312            /
313            /initrd
314
315       security_t
316
317            /selinux
318
319       sysfs_t
320
321            /sys(/.*)?
322
323       systemd_passwd_var_run_t
324
325            /var/run/systemd/ask-password(/.*)?
326            /var/run/systemd/ask-password-block(/.*)?
327
328

FILE CONTEXTS

330       SELinux requires files to have an extended attribute to define the file
331       type.
332
333       You can see the context of a file using the -Z option to ls
334
335       Policy governs the access  confined  processes  have  to  these  files.
336       SELinux  NetworkManager policy is very flexible allowing users to setup
337       their NetworkManager processes in as secure a method as possible.
338
339       EQUIVALENCE DIRECTORIES
340
341
342       NetworkManager policy stores data with multiple different file  context
343       types  under  the /var/run/wpa_supplicant directory.  If you would like
344       to store the data in a different directory you  can  use  the  semanage
345       command  to create an equivalence mapping.  If you wanted to store this
346       data under the /srv dirctory you would execute the following command:
347
348       semanage fcontext -a -e /var/run/wpa_supplicant /srv/wpa_supplicant
349       restorecon -R -v /srv/wpa_supplicant
350
351       NetworkManager policy stores data with multiple different file  context
352       types  under  the /var/run/NetworkManager directory.  If you would like
353       to store the data in a different directory you  can  use  the  semanage
354       command  to create an equivalence mapping.  If you wanted to store this
355       data under the /srv dirctory you would execute the following command:
356
357       semanage fcontext -a -e /var/run/NetworkManager /srv/NetworkManager
358       restorecon -R -v /srv/NetworkManager
359
360       STANDARD FILE CONTEXT
361
362       SELinux defines the file context types for the NetworkManager,  if  you
363       wanted  to store files with these types in a diffent paths, you need to
364       execute the semanage command to sepecify alternate  labeling  and  then
365       use restorecon to put the labels on disk.
366
367       semanage  fcontext  -a  -t NetworkManager_var_run_t '/srv/myNetworkMan‐
368       ager_content(/.*)?'
369       restorecon -R -v /srv/myNetworkManager_content
370
371       Note: SELinux often uses regular expressions  to  specify  labels  that
372       match multiple files.
373
374       The following file types are defined for NetworkManager:
375
376
377
378       NetworkManager_etc_rw_t
379
380       - Set files with the NetworkManager_etc_rw_t type, if you want to treat
381       the files as NetworkManager etc read/write content.
382
383
384       Paths:
385            /etc/NetworkManager/system-connections(/.*)?,     /etc/NetworkMan‐
386            ager/NetworkManager.conf
387
388
389       NetworkManager_etc_t
390
391       -  Set  files  with the NetworkManager_etc_t type, if you want to store
392       NetworkManager files in the /etc directories.
393
394
395
396       NetworkManager_exec_t
397
398       - Set files with the NetworkManager_exec_t type, if you want to transi‐
399       tion an executable to the NetworkManager_t domain.
400
401
402       Paths:
403            /usr/libexec/nm-dispatcher.*,    /usr/bin/teamd,   /usr/sbin/wicd,
404            /usr/bin/NetworkManager,  /usr/bin/wpa_supplicant,  /usr/sbin/Net‐
405            workManager,   /usr/sbin/wpa_supplicant,  /usr/sbin/nm-system-set‐
406            tings, /usr/sbin/NetworkManagerDispatcher
407
408
409       NetworkManager_initrc_exec_t
410
411       - Set files with the NetworkManager_initrc_exec_t type, if you want  to
412       transition an executable to the NetworkManager_initrc_t domain.
413
414
415       Paths:
416            /etc/NetworkManager/dispatcher.d(/.*)?, /etc/rc.d/init.d/wicd
417
418
419       NetworkManager_log_t
420
421       -  Set  files  with the NetworkManager_log_t type, if you want to treat
422       the data as NetworkManager log data, usually stored under the  /var/log
423       directory.
424
425
426       Paths:
427            /var/log/wicd.*, /var/log/wpa_supplicant.*
428
429
430       NetworkManager_tmp_t
431
432       -  Set  files  with the NetworkManager_tmp_t type, if you want to store
433       NetworkManager temporary files in the /tmp directories.
434
435
436
437       NetworkManager_unit_file_t
438
439       - Set files with the NetworkManager_unit_file_t type, if  you  want  to
440       treat the files as NetworkManager unit content.
441
442
443
444       NetworkManager_var_lib_t
445
446       -  Set  files  with  the  NetworkManager_var_lib_t type, if you want to
447       store the NetworkManager files under the /var/lib directory.
448
449
450       Paths:
451            /var/lib/wicd(/.*)?,                /var/lib/NetworkManager(/.*)?,
452            /etc/dhcp/wired-settings.conf,      /etc/wicd/wired-settings.conf,
453            /etc/dhcp/manager-settings.conf,  /etc/wicd/manager-settings.conf,
454            /etc/dhcp/wireless-settings.conf, /etc/wicd/wireless-settings.conf
455
456
457       NetworkManager_var_run_t
458
459       -  Set  files  with  the  NetworkManager_var_run_t type, if you want to
460       store the NetworkManager files under the /run or /var/run directory.
461
462
463       Paths:
464            /var/run/teamd(/.*)?,   /var/run/nm-xl2tpd.conf.*,    /var/run/nm-
465            dhclient.*,   /var/run/NetworkManager(/.*)?,  /var/run/wpa_suppli‐
466            cant(/.*)?,    /var/run/wicd.pid,     /var/run/NetworkManager.pid,
467            /var/run/nm-dns-dnsmasq.conf, /var/run/wpa_supplicant-global
468
469
470       Note:  File context can be temporarily modified with the chcon command.
471       If you want to permanently change the file context you need to use  the
472       semanage fcontext command.  This will modify the SELinux labeling data‐
473       base.  You will need to use restorecon to apply the labels.
474
475

COMMANDS

477       semanage fcontext can also be used to manipulate default  file  context
478       mappings.
479
480       semanage  permissive  can  also  be used to manipulate whether or not a
481       process type is permissive.
482
483       semanage module can also be used to enable/disable/install/remove  pol‐
484       icy modules.
485
486       semanage boolean can also be used to manipulate the booleans
487
488
489       system-config-selinux is a GUI tool available to customize SELinux pol‐
490       icy settings.
491
492

AUTHOR

494       This manual page was auto-generated using sepolicy manpage .
495
496

SEE ALSO

498       selinux(8), NetworkManager(8),  semanage(8),  restorecon(8),  chcon(1),
499       sepolicy(8) , setsebool(8)
500
501
502
503NetworkManager                     19-04-25          NetworkManager_selinux(8)
Impressum