summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/_checks.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-01-23 23:07:07 +0100
committerKali Kaneko <kali@leap.se>2018-01-25 01:19:22 +0100
commitcbfd0dc8873fbfb604782faded94fc77a7ab9430 (patch)
tree79e31adeed20f9a316fa36104b3acf2dd35f8f3c /src/leap/bitmask/vpn/_checks.py
parent26d3badc31655e2258f54dbcaf0bdca5f8623e69 (diff)
[tests] workaround for functional tests in docker
polkit doesn't work inside docker.
Diffstat (limited to 'src/leap/bitmask/vpn/_checks.py')
-rw-r--r--src/leap/bitmask/vpn/_checks.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/_checks.py b/src/leap/bitmask/vpn/_checks.py
index 681f7428..2549e366 100644
--- a/src/leap/bitmask/vpn/_checks.py
+++ b/src/leap/bitmask/vpn/_checks.py
@@ -27,6 +27,9 @@ def get_failure_for(provider):
def is_service_ready(provider):
if not _has_valid_cert(provider):
return False
+ if os.getuid() == 0:
+ # it's your problem if you run as root, not mine.
+ return True
if IS_LINUX and not is_pkexec_in_system():
log.warn('System has no pkexec')
return False