Bug 712031 - pm-utils fails without SElinux
Summary: pm-utils fails without SElinux
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pm-utils
Version: 15
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-09 10:17 UTC by Bert DeKnuydt
Modified: 2011-06-09 11:36 UTC (History)
4 users (show)

Fixed In Version: pm-utils-1.4.1-8.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-09 11:36:23 UTC
Type: ---


Attachments (Terms of Use)

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.


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