Bug 1350215 - SELinux policy prevents systemd from creating NETLINK_ROUTE socket
Summary: SELinux policy prevents systemd from creating NETLINK_ROUTE socket
Keywords:
Status: CLOSED DUPLICATE of bug 1306344
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-26 13:43 UTC by Michael Chapman
Modified: 2016-06-26 14:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-26 14:40:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Chapman 2016-06-26 13:43:07 UTC
This bug is for:

- selinux-policy-targeted-3.13.1-190.fc24.noarch
- systemd-229-8.fc24.x86_64

On F24, the systemd-networkd.socket service fails as systemd is unable to create the NETLINK_ROUTE socket:

  # getenforce 
  Enforcing
  # systemctl start systemd-networkd.socket
  Job for systemd-networkd.socket failed. See "systemctl status systemd-networkd.socket" and "journalctl -xe" for details.

The audit log message is:

  AVC avc:  denied  { create } for  pid=1 comm="systemd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:systemd_networkd_t:s0 tclass=netlink_route_socket permissive=0

With SELinux in permission mode, it's clear systemd is missing a few permissions:

  AVC avc:  denied  { create } for  pid=1 comm="systemd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:systemd_networkd_t:s0 tclass=netlink_route_socket permissive=1
  AVC avc:  denied  { setopt } for  pid=1 comm="systemd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:systemd_networkd_t:s0 tclass=netlink_route_socket permissive=1
  AVC avc:  denied  { bind } for  pid=1 comm="systemd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:systemd_networkd_t:s0 tclass=netlink_route_socket permissive=1

Comment 1 Michael Chapman 2016-06-26 14:40:24 UTC
My apologies, I didn't see the existing ticket #1306344.

*** This bug has been marked as a duplicate of bug 1306344 ***


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