Bug 222819

Summary: pm-powersave fails due to dir permissons
Product: [Fedora] Fedora Reporter: simon
Component: pm-utilsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-23 13:15:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description simon 2007-01-16 12:49:18 UTC
Description of problem:
When executing "pm-powersave true" it fails with the message:

You do not have write access to /proc/sys/vm/

ls -l for /proc/sys/vm shows:

dr-xr-xr-x 2 root root 0 Jan 16 12:44 vm

however, ls -l within /proc/sys/vm shows e.g;

-rw-r--r-- 1 root root 0 Jan 16 12:47 laptop_mode

So pm-powersave *could* still write to the files if it had the correct check for
being able to write there.

Version-Release number of selected component (if applicable):
pm-utils-0.19-3

How reproducible:
Always

Steps to Reproduce:
1. Run pm-powersave true
2.
3.
  
Actual results:
error: You do not have write access to /proc/sys/vm/

Expected results:
output: **SetLowPower ON


Additional info:

Comment 1 Phil Knirsch 2007-01-23 13:15:40 UTC
Fixed in latest version.

Read ya, Phil