mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Don't run polkit checks as root (Daniel Berrange)
This commit is contained in:
parent
75cfe0f95f
commit
bb5a39f6fb
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user