diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-09-18 19:53:17 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-09-20 17:56:49 +0200 |
commit | 79e9f3c69b4eb061490d6a12a52888abc429542e (patch) | |
tree | bab13194d73dc75218a1575d52888c0f563e508c /src/leap/bitmask/vpn/helpers | |
parent | d0e4444555df79978aed5cd6c9548e2fd1c63936 (diff) |
[feat] detect if pkexec is present in the system
Check it before starting the vpn.
- Resolves: #8895
Diffstat (limited to 'src/leap/bitmask/vpn/helpers')
-rw-r--r-- | src/leap/bitmask/vpn/helpers/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/helpers/__init__.py b/src/leap/bitmask/vpn/helpers/__init__.py index e09f406d..57847e16 100644 --- a/src/leap/bitmask/vpn/helpers/__init__.py +++ b/src/leap/bitmask/vpn/helpers/__init__.py @@ -4,6 +4,7 @@ import os.path import sys from leap.bitmask.vpn.constants import IS_LINUX, IS_MAC +from leap.bitmask.vpn.privilege import is_pkexec_in_system from leap.bitmask.vpn import _config from leap.bitmask.util import STANDALONE @@ -38,7 +39,7 @@ if IS_LINUX: polkit = ( os.path.exists(polkit_to) or os.path.exists(deb_polkit_to)) - return helper and polkit + return is_pkexec_in_system() and helper and polkit if IS_MAC: |