Description of problem: systemd-networkd can be configured to create tun devices, for example: $ cat /etc/systemd/network/tun5.netdev [NetDev] Name=tun5 Kind=tun [Tun] SELinux is preventing systemd-network from 'create' accesses on the tun_socket Unknown. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that systemd-network should be allowed create access on the Unknown tun_socket by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'systemd-network' --raw | audit2allow -M my-systemdnetwork # semodule -X 300 -i my-systemdnetwork.pp Additional Information: Source Context system_u:system_r:systemd_networkd_t:s0 Target Context system_u:system_r:systemd_networkd_t:s0 Target Objects Unknown [ tun_socket ] Source systemd-network Source Path systemd-network Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-283.34.fc27.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 4.16.16-200.fc27.x86_64 #1 SMP Sun Jun 17 03:06:00 UTC 2018 x86_64 x86_64 Alert Count 1 First Seen 2018-06-27 14:46:25 AEST Last Seen 2018-06-27 14:46:25 AEST Local ID 1a8d5b7f-e51f-40cb-9b7d-3eee2a88eba3 Raw Audit Messages type=AVC msg=audit(1530074785.24:304): avc: denied { create } for pid=9224 comm="systemd-network" scontext=system_u:system_r:systemd_networkd_t:s0 tcontext=system_u:system_r:systemd_networkd_t:s0 tclass=tun_socket permissive=1 Hash: systemd-network,systemd_networkd_t,systemd_networkd_t,tun_socket,create Version-Release number of selected component: selinux-policy-3.13.1-283.34.fc27.noarch Additional info: component: selinux-policy reporter: libreport-2.9.3 hashmarkername: setroubleshoot kernel: 4.16.16-200.fc27.x86_64 type: libreport
selinux-policy-3.13.1-284.37.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4bb4de2d86
selinux-policy-3.13.1-284.37.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-4bb4de2d86
selinux-policy-3.13.1-284.37.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.