Hello community, here is the log from the commit of package ivman checked in at Mon Nov 17 17:05:42 CET 2008. -------- --- ivman/ivman.changes 2008-10-29 18:03:22.000000000 +0100 +++ /mounts/work_src_done/STABLE/ivman/ivman.changes 2008-11-14 14:02:04.000000000 +0100 @@ -1,0 +2,5 @@ +Fri Nov 14 14:01:53 CET 2008 - lnussel@suse.de + +- halmount: add support for PolicyKit + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ivman.spec ++++++ --- /var/tmp/diff_new_pack.D11744/_old 2008-11-17 17:04:35.000000000 +0100 +++ /var/tmp/diff_new_pack.D11744/_new 2008-11-17 17:04:35.000000000 +0100 @@ -24,7 +24,7 @@ Group: System/Daemons Url: http://ivman.sourceforge.net/ Version: 0.6.14 -Release: 200 +Release: 201 Source0: http://puzzle.dl.sourceforge.net/sourceforge/ivman/%name-%version.tar.bz2 Source1: halmount.py Source2: ivman.init @@ -105,6 +105,8 @@ /usr/sbin/rcivman %changelog +* Fri Nov 14 2008 lnussel@suse.de +- halmount: add support for PolicyKit * Tue Oct 28 2008 mkoenig@suse.de - check for halmount as default - remove redundant build requires ++++++ halmount.py ++++++ --- /var/tmp/diff_new_pack.D11744/_old 2008-11-17 17:04:35.000000000 +0100 +++ /var/tmp/diff_new_pack.D11744/_new 2008-11-17 17:04:35.000000000 +0100 @@ -7,7 +7,8 @@ # umount or at least display it somehow import sys -from os import getuid +import subprocess +from os import getuid, getpid from optparse import OptionParser def err(arg): @@ -233,8 +234,26 @@ err(dev.device + ": " + str(msg)) ret += 1 else: - err(dev.device + ": " + str(msg)) - ret += 1 + if msg.get_dbus_name() == "org.freedesktop.Hal.Device.PermissionDeniedByPolicy": + privilege = str(msg)[len("org.freedesktop.Hal.Device.PermissionDeniedByPolicy: "):] + privilege = privilege[:privilege.find(" ")] + + try: + bus = dbus.SessionBus() + agent = bus.get_object("org.freedesktop.PolicyKit.AuthenticationAgent", "/") + ok = agent.ObtainAuthorization(privilege, dbus.UInt32(0), dbus.UInt32(getpid())); + if ok == True: + self.mountable.append(dev) + continue + else: + err("Missing Privilege: " + privilege); + ret += 1 + except: + err('authentication agent unreachable.\ntry running "polkit-auth --obtain %(p)s"' % { 'p': privilege}) + ret += 1 + else: + err(dev.device + ": " + str(msg)) + ret += 1 if ret == 0: dev.update() ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org