summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/privilege.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-05-19 13:47:15 +0200
committerRuben Pollan <meskio@sindominio.net>2017-05-22 12:56:21 +0200
commit4c75ff68fe2b629c3f53b51a07ab20e6bfa52bf0 (patch)
tree4c9f55191643d78f22d72508e443c8bddcc50fd0 /src/leap/bitmask/vpn/privilege.py
parent4f39b220a0765929fa0d744ce74a8f5125e958c2 (diff)
[bug] use openvpn from bundle
Diffstat (limited to 'src/leap/bitmask/vpn/privilege.py')
-rw-r--r--src/leap/bitmask/vpn/privilege.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/leap/bitmask/vpn/privilege.py b/src/leap/bitmask/vpn/privilege.py
index ef33337..2576877 100644
--- a/src/leap/bitmask/vpn/privilege.py
+++ b/src/leap/bitmask/vpn/privilege.py
@@ -36,9 +36,6 @@ from leap.bitmask.util import STANDALONE, here
log = Logger()
-flags_STANDALONE = False
-
-
def install_helpers():
cmd = 'bitmask_helpers install'
if STANDALONE:
@@ -124,7 +121,7 @@ class LinuxPolicyChecker(PolicyChecker):
:rtype: str
"""
- return (self.LINUX_POLKIT_FILE_BUNDLE if flags_STANDALONE
+ return (self.LINUX_POLKIT_FILE_BUNDLE if STANDALONE
else self.LINUX_POLKIT_FILE)
def is_missing_policy_permissions(self):
@@ -175,7 +172,7 @@ class LinuxPolicyChecker(PolicyChecker):
Tries to launch policykit
"""
env = None
- if flags_STANDALONE:
+ if STANDALONE:
# This allows us to send to subprocess the environment configs that
# works for the standalone bundle (like the PYTHONPATH)
env = dict(os.environ)