Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1595991 - SELinux is preventing systemd-network from 'create' accesses on the tun_socket Unknown.
Summary: SELinux is preventing systemd-network from 'create' accesses on the tun_socke...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:40fe663424d2f94e5a42fd8dbbf...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-28 01:31 UTC by Dan Callaghan
Modified: 2018-08-08 15:34 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-284.37.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-08 15:34:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dan Callaghan 2018-06-28 01:31:10 UTC
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

Comment 1 Fedora Update System 2018-07-27 09:22:52 UTC
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

Comment 2 Fedora Update System 2018-07-27 15:39:09 UTC
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

Comment 3 Fedora Update System 2018-08-08 15:34:01 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.