Bug 1506849 - SELinux denial blocking access to Cockpit on Modular Server
Summary: SELinux denial blocking access to Cockpit on Modular Server
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1492240
TreeView+ depends on / blocked
 
Reported: 2017-10-27 01:31 UTC by Stephen Gallagher
Modified: 2017-10-28 10:58 UTC (History)
5 users (show)

Fixed In Version: Fedora-Modular-27-20171027.n.2
Clone Of:
Environment:
Last Closed: 2017-10-28 10:58:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stephen Gallagher 2017-10-27 01:31:00 UTC
Description of problem:
The Cockpit service is unreachable with SELinux in enforcing mode on the Fedora-Modular-27-20171026.n.3 compose.

Version-Release number of selected component (if applicable):
cockpit-ws-149-1.module_8a5444d0.x86_64
selinux-policy-3.13.1-275.module_8a5444d0.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Install from the Fedora-Modular-27-20171026.n.3 DVD or boot.iso with the "Fedora Server Edition" environment group.
2. `systemctl enable cockpit.socket && systemctl start cockpit.socket`
3. `firewall-cmd --add-service=cockpit`
4. Attempt to log into cockpit

Actual results:
Presented with "Internal Server Error"

Expected results:
Presented with the Cockpit login screen.

Additional info:

type=AVC msg=audit(1509067465.251:246): avc:  denied  { map } for  pid=1255 comm="cockpit-ws" path="/usr/share/cockpit/branding/default/branding.css" dev="dm-0" ino=10348 scontext=system_u:system_r:cockpit_ws_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file permissive=1

This may be solved with an updated SELinux policy than we currently have in the compose. I will update that and try again, but we need this bug so we can track the blocker status of it.

Comment 1 Lukas Vrabec 2017-10-27 07:19:26 UTC
Stephen, 

This is fixed in the latest selinux-policy package.

Comment 2 Stephen Gallagher 2017-10-27 11:50:04 UTC
Reopening until we import the newest SELinux policy into the platform module.

Comment 3 Stephen Gallagher 2017-10-28 10:58:09 UTC
Confirmed fixed as of compose Fedora-Modular-27-20171027.n.2


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