From 0f3ee7cfa34546ec5636e1d13a9884e7dce8997a Mon Sep 17 00:00:00 2001 From: kali Date: Thu, 21 Sep 2017 14:30:05 -0700 Subject: [bug] check for pkexec only in linux --- src/leap/bitmask/vpn/_checks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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() -- cgit v1.2.3