[Pkg-utopia-maintainers] Bug#562877: granted shutdown privileges lost

Harald Dunkel harald.dunkel at t-online.de
Mon Dec 28 19:25:02 UTC 2009


Package: hal
Version: 0.5.14-1

I have granted the user "xbmc" permission to shutdown, reboot, suspend
and hibernate the PC using

polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions


"polkit-auth --explicit" lists the expected privileges:

org.freedesktop.hal.power-management.suspend
org.freedesktop.hal.power-management.hibernate
org.freedesktop.hal.power-management.reboot
org.freedesktop.hal.power-management.shutdown
org.freedesktop.hal.power-management.reboot-multiple-sessions
org.freedesktop.hal.power-management.shutdown-multiple-sessions


But when the user tries to make use of it, then he gets an access
denied error message:

xbmc at elmer:~$ dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown
Error org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.13" (uid=1001 pid=2706 comm="dbus-send) interface="org.freedesktop.Hal.Device.SystemPowerManagement" member="Shutdown" error name="(unset)" requested_reply=0 
destination="org.freedesktop.Hal" (uid=0 pid=2326 comm="/usr/sbin/hald))





More information about the Pkg-utopia-maintainers mailing list