diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-10-01 16:19:58 -0300 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-12-18 11:53:12 -0400 |
commit | 855e96cefe975e50d140e6c8aa7d3407931b25d7 (patch) | |
tree | fd77e256fb259a618b69f6ffb3cabcd2c990eb98 /src/leap/bitmask/backend/components.py | |
parent | aff470b3efa671f6c04107f718d359054a739bdc (diff) |
Quit Bitmask if there is no polkit agent running.
Closes #6150.
Diffstat (limited to 'src/leap/bitmask/backend/components.py')
-rw-r--r-- | src/leap/bitmask/backend/components.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/bitmask/backend/components.py b/src/leap/bitmask/backend/components.py index 50f723cb..87950072 100644 --- a/src/leap/bitmask/backend/components.py +++ b/src/leap/bitmask/backend/components.py @@ -54,6 +54,7 @@ from leap.bitmask.services.mail.smtpconfig import SMTPConfig from leap.bitmask.services.soledad.soledadbootstrapper import \ SoledadBootstrapper from leap.bitmask.util import force_eval +from leap.bitmask.util.privilege_policies import LinuxPolicyChecker from leap.common import certs as leap_certs @@ -638,6 +639,10 @@ class EIP(object): :param domain: the domain for the provider to check :type domain: str """ + if not LinuxPolicyChecker.is_up(): + logger.error("No polkit agent running.") + return False + eip_config = eipconfig.EIPConfig() provider_config = ProviderConfig.get_provider_config(domain) |