Bug 1069179

Summary: SELinux prevents proper shutdown of my system
Product: [Fedora] Fedora Reporter: Elad Alfassa <elad>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, mattdm, robatino
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-27 21:16:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Log from shutdown none

Description Elad Alfassa 2014-02-24 12:12:14 UTC
Created attachment 866947 [details]
Log from shutdown

After upgrading to rawhide, I noticed I could not power off my system: it hangs after "Reached target shutdown".

If you look at the attached log, you'd see permission denied error for "swapoff" and "kill".

If I execute "setenforce 0" before shutdown, the system shuts down properly.

Comment 1 Daniel Walsh 2014-02-24 21:24:57 UTC
I think this should be fixed in the latest policy.

selinux-policy-3.13.1-26.fc21.noarch

Comment 2 Andre Robatino 2014-02-24 23:53:51 UTC
Still broken with the above version. Running "setenforce 0" before shutdown allows shutting down properly.

Comment 3 Andre Robatino 2014-02-25 18:29:44 UTC
Seems to shut down properly with selinux-policy-3.13.1-27.fc21.noarch (from the 20140225 rawhide push). Elad, can you confirm? If so, this can be closed again.

Comment 4 Andre Robatino 2014-02-27 21:16:12 UTC
Not seeing the problem myself anymore, closing.