Bug 388311 - Hal should allow logged-in user to suspend polling
Hal should allow logged-in user to suspend polling
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: hal (Show other bugs)
7
All Linux
low Severity medium
: ---
: ---
Assigned To: David Zeuthen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-17 08:08 EST by David Anderson
Modified: 2013-03-05 22:53 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-11-17 09:51:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David Anderson 2007-11-17 08:08:46 EST
I want my computer to automatically disable polling of the CD drive when I 
switch to battery power; and re-enable it when I come back.

To achieve this, I think I have to use the "Configuration Notifications" 
feature of kpowersave (I use KDE) and add a shell script to be run when AC 
power comes and goes, which calls hal-disable-polling.

However, hal-disable-polling doesn't allow non-root users, whether logged in 
or not, to access it:

$ hal-disable-polling --device /dev/scd0
This program requires super user (root) privileges.

I think that that access check is too restrictive - the logged in user should 
be allowed to control polling of the drive.
Comment 1 David Zeuthen 2007-11-17 09:51:44 EST
This works already, see hal-lock(1). Besides, feature requests should not be
filed in a downstream bugzilla.

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