Bug 1269916 - SELinux is preventing systemd-network from getattr access on the file /proc/xen/capabilities
SELinux is preventing systemd-network from getattr access on the file /proc/x...
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
22
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Miroslav Grepl
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-08 09:32 EDT by Major Hayden
Modified: 2015-11-26 22:55 EST (History)
1 user (show)

See Also:
Fixed In Version: selinux-policy-3.13.1-128.19.fc22
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-26 22:55:58 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Major Hayden 2015-10-08 09:32:17 EDT
I'm currently running Fedora 22 on a Xen hypervisor and I'm getting the following SELinux warning:

------------------------------------------------
SELinux is preventing systemd-network from getattr access on the file /proc/xen/capabilities.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that systemd-network should be allowed getattr access on the capabilities file 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:
# grep systemd-network /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
------------------------------------------------

Here's what audit2allow generates:

------------------------------------------------
#  grep systemd-network /var/log/audit/audit.log | audit2allow

#============= systemd_networkd_t ==============
allow systemd_networkd_t proc_xen_t:dir search;
allow systemd_networkd_t xenfs_t:file { read getattr open };
------------------------------------------------

I'm currently running Fedora 22 with these relevant packages:

systemd-219-24.fc22.x86_64
systemd-libs-219-24.fc22.x86_64
systemd-python-219-24.fc22.x86_64
libselinux-2.3-10.fc22.x86_64
libselinux-python-2.3-10.fc22.x86_64
libselinux-utils-2.3-10.fc22.x86_64
rpm-plugin-selinux-4.12.0.1-12.fc22.x86_64
selinux-policy-3.13.1-128.16.fc22.noarch
selinux-policy-targeted-3.13.1-128.16.fc22.noarch
Comment 2 Major Hayden 2015-10-13 08:15:24 EDT
Thanks for the quick work, Miroslav. I'll wait for the package to hit Bodhi and I'll test it.
Comment 3 Fedora Update System 2015-11-03 04:47:27 EST
selinux-policy-3.13.1-128.19.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-5fab64b918
Comment 4 Fedora Update System 2015-11-03 13:57:21 EST
selinux-policy-3.13.1-128.19.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update selinux-policy'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-5fab64b918
Comment 5 Fedora Update System 2015-11-09 12:56:27 EST
selinux-policy-3.13.1-128.20.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-f396e330d9
Comment 6 Fedora Update System 2015-11-09 21:22:24 EST
selinux-policy-3.13.1-128.20.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update selinux-policy'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f396e330d9
Comment 7 Fedora Update System 2015-11-20 08:14:16 EST
selinux-policy-3.13.1-128.21.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-1bbd3df966
Comment 8 Fedora Update System 2015-11-21 12:52:32 EST
selinux-policy-3.13.1-128.21.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update selinux-policy'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-1bbd3df966
Comment 9 Fedora Update System 2015-11-26 22:53:31 EST
selinux-policy-3.13.1-128.21.fc22 has been pushed to the Fedora 22 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.