Bug 712031

Summary: pm-utils fails without SElinux
Product: [Fedora] Fedora Reporter: Bert DeKnuydt <Bert.Deknuydt>
Component: pm-utilsAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: jskarvad, opensource, pknirsch, richard
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pm-utils-1.4.1-8.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-09 11:36:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Bert DeKnuydt 2011-06-09 10:17:12 UTC
Description of problem:

Either pm-utils has to depend on policycoreutils, or it should only
invoke restorecon, when available. 

This prevents suspend/hibernate when all things SElinux are removed.
This is a regression from F14.

Version-Release number of selected component (if applicable):

pm-utils-1.4.1-6.fc15.i686

How reproducible:

Always

Steps to Reproduce:
1. yum erase policycoreutils 
2. yum install pm-utils
3. pm-powersave (or any other pm-* tool)
  
Actual results:

/usr/lib/pm-utils/pm-functions: line 275: restorecon: command not found

Expected results:

No crash, but some action.

Additional info:

So a suggested fix would be to replace line 275 with

[ -x /usr/bin/restorecon ] && restorecon "$1"

Comment 1 Jaroslav Škarvada 2011-06-09 11:36:23 UTC
It is already fixed in pm-utils-1.4.1-8.fc15, currently in testing:
https://admin.fedoraproject.org/updates/pm-utils-1.4.1-8.fc15

Please give it some karma, if it works for you, to speed things up.