Don't run polkit checks as root (Daniel Berrange)

This commit is contained in:
Cole Robinson 2008-09-24 14:55:03 -04:00
parent 75cfe0f95f
commit bb5a39f6fb

View File

@ -382,6 +382,9 @@ class vmmConnection(gobject.GObject):
self.connectThread.start()
def _do_creds_polkit(self, action):
if os.getuid() == 0:
logging.debug("Skipping policykit check as root")
return 0
logging.debug("Doing policykit for %s" % action)
bus = dbus.SessionBus()