Mailinglist Archive: opensuse-bugs (7184 mails)

< Previous Next >
[Bug 355520] New: Invalid .policy file stops automounting, suspend in kpowersave
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 22 Jan 2008 21:30:05 -0700 (MST)
  • Message-id: <bug-355520-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=355520


Summary: Invalid .policy file stops automounting, suspend in
kpowersave
Product: openSUSE 10.3
Version: Final
Platform: x86-64
OS/Version: openSUSE 10.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Hotplug
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: ponyisi@xxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---


Created an attachment (id=191423)
--> (https://bugzilla.novell.com/attachment.cgi?id=191423)
policy file that breaks hal

I have been having intermittent "hal-storage-mount-removable no <-- (action,
result)" errors when hotplugging removable storage; this is correlated with the
"standby/suspend to disk/ram" options vanishing from menus in KDE. I finally
tracked down the problem to my installing/removing PulseAudio updates
(specifically pulseaudio-0.9.8-11.1) which create the file
/usr/share/PolicyKit/policy/PulseAudio.policy which polkit-policy-file-validate
considers invalid. When this file is present and an SD card is inserted, for
example, the debug output of hald gives:

** (process:6680): WARNING **: Error loading policy files from
/usr/share/PolicyKit/policy: /usr/share/PolicyKit/policy/PulseAudio.policy:29:
parse error: parsing aborted

..

23:23:44.667 [I] hald_dbus.c:4025: failed with
'org.freedesktop.Hal.Device.PermissionDeniedByPolicy'
'hal-storage-mount-removable no <-- (action, result)'

When this file is removed, everything works flawlessly.

The bug being filed is that a malformed .policy file should not cause hal
operations to fail -- at least not without a much more informative error
message.

Versions:
hal-0.5.9_git20070831-13
PolicyKit-0.4-21
dbus-1-1.0.2-59.2
ConsoleKit-0.2.1-57


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >