summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/_checks.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2017-09-21 14:30:05 -0700
committerKali Kaneko <kali@leap.se>2017-09-29 17:46:14 +0200
commit0f3ee7cfa34546ec5636e1d13a9884e7dce8997a (patch)
tree964dcdd1f9e76002152bf87e6ab9859401134d4c /src/leap/bitmask/vpn/_checks.py
parent3b001973850173e056084278b0fef8807bef2dee (diff)
[bug] check for pkexec only in linux
Diffstat (limited to 'src/leap/bitmask/vpn/_checks.py')
-rw-r--r--src/leap/bitmask/vpn/_checks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/_checks.py b/src/leap/bitmask/vpn/_checks.py
index c6117d0d..c8f7dd36 100644
--- a/src/leap/bitmask/vpn/_checks.py
+++ b/src/leap/bitmask/vpn/_checks.py
@@ -8,6 +8,8 @@ from leap.bitmask.vpn.privilege import is_pkexec_in_system, NoPkexecAvailable
from leap.common.certs import get_cert_time_boundaries
from leap.common.config import get_path_prefix
+from .constants import IS_LINUX
+
log = Logger()
@@ -19,7 +21,7 @@ def is_service_ready(provider):
if not _has_valid_cert(provider):
raise ImproperlyConfigured('Missing VPN certificate')
- if not is_pkexec_in_system():
+ if IS_LINUX and not is_pkexec_in_system():
log.warn('System has no pkexec')
raise NoPkexecAvailable()