Bug 124575 - apm attempts to create /dev/apm_bios, even when not needed
apm attempts to create /dev/apm_bios, even when not needed
Product: Fedora
Classification: Fedora
Component: apmd (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  Show dependency treegraph
Reported: 2004-05-27 12:57 EDT by Patrick Caldon
Modified: 2014-03-16 22:45 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-06-28 17:21:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Patrick Caldon 2004-05-27 12:57:15 EDT
Description of problem:

As a user, 'apm -s' results in failure.  looking at the code and
strace, it appears that apm tries to create /dev/apm_bios even if it
already exists, wich fails unless you're root.

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


How reproducible:

Steps to Reproduce:
1. log in as user
2. type "apm -s"
Actual results:

[mandy@localhost mandy]$ apm -s
apm: Operation not permitted
[mandy@localhost mandy]$

Expected results:

Machine suspended.

Additional info:
Comment 1 Alan Cox 2004-06-18 21:41:23 EDT
Works for me. 

It should be setting /dev/apm_bios to the most recent console or X
login. The idea is that the console users can suspend but not remote
Comment 2 Bill Nottingham 2004-06-28 17:21:00 EDT
It does appear to be in console.perms correctly.

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