--- JobService/policy.py.orig 2011-08-23 00:37:24.816169192 +0300 +++ JobService/policy.py 2011-08-23 00:37:17.996169195 +0300 @@ -15,7 +15,7 @@ # along with jobservice. If not, see . import logging -from dbus import SystemBus, DBusException, Interface +from dbus import SystemBus, DBusException, Interface, UInt64 log = logging.getLogger('policy') @@ -48,7 +48,7 @@ pid = self.dbus_iface.GetConnectionUnixProcessID(sender) # ask PolicyKit auth, challenge, details = self.pk.CheckAuthorization( - ('unix-process', {'pid': pid, 'start-time': 0}), + ('unix-process', {'pid': pid, 'start-time': UInt64(0)}), priv, {'': ''}, 1, '', timeout=500) if not auth: log.info("Authorization failed")