Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:3111
Description of problem: It is not possible to create tun tap device with SELinux enabled. Version-Release number of selected component (if applicable): selinux-policy-3.13.1-201.el7.noarch selinux-policy-devel-3.13.1-201.el7.noarch selinux-policy-minimum-3.13.1-201.el7.noarch selinux-policy-mls-3.13.1-201.el7.noarch selinux-policy-targeted-3.13.1-201.el7.noarch systemd-219-57.el7.x86_64 systemd-journal-gateway-219-57.el7.x86_64 systemd-libs-219-57.el7.x86_64 systemd-networkd-219-57.el7.x86_64 systemd-python-219-57.el7.x86_64 systemd-resolved-219-57.el7.x86_64 systemd-sysv-219-57.el7.x86_64 How reproducible: * always Steps to Reproduce: 0.# mkdir -p /etc/systemd/network 1.# cat /etc/systemd/network/25-tun.netdev [NetDev] Name=tun99 Kind=tun [Tun] MultiQueue=true PacketInfo=true 2.# systemctl daemon-reload 3.# systemctl restart systemd-networkd Actual results (enforcing mode): ---- type=PROCTITLE msg=audit(05/29/2018 15:45:19.840:497) : proctitle=/usr/lib/systemd/systemd-networkd type=PATH msg=audit(05/29/2018 15:45:19.840:497) : item=0 name=/dev/net/tun inode=12708 dev=00:05 mode=character,666 ouid=root ogid=root rdev=0a:c8 obj=system_u:object_r:tun_tap_device_t:s0 objtype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 type=CWD msg=audit(05/29/2018 15:45:19.840:497) : cwd=/ type=SYSCALL msg=audit(05/29/2018 15:45:19.840:497) : arch=x86_64 syscall=open success=no exit=EACCES(Permission denied) a0=0x55a2e002dfba a1=O_RDWR a2=0x0 a3=0x55a2e03ec180 items=1 ppid=1 pid=10681 auid=unset uid=systemd-network gid=systemd-network euid=systemd-network suid=systemd-network fsuid=systemd-network egid=systemd-network sgid=systemd-network fsgid=systemd-network tty=(none) ses=unset comm=systemd-network exe=/usr/lib/systemd/systemd-networkd subj=system_u:system_r:systemd_networkd_t:s0 key=(null) type=AVC msg=audit(05/29/2018 15:45:19.840:497) : avc: denied { read write } for pid=10681 comm=systemd-network name=tun dev="devtmpfs" ino=12708 scontext=system_u:system_r:systemd_networkd_t:s0 tcontext=system_u:object_r:tun_tap_device_t:s0 tclass=chr_file permissive=0 ---- Expected results: * no SELinux denials