summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services/eip/linuxvpnlauncher.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-05-07 11:24:53 -0500
committerKali Kaneko <kali@leap.se>2014-05-12 11:25:16 -0500
commit14b208105a6417aefd351f5b38f33bb89358ddcd (patch)
tree735e017905319ccc5084fe37041db9b3df94f6e6 /src/leap/bitmask/services/eip/linuxvpnlauncher.py
parentac19940deb6f0d8c73dc73211d5575c270eff12b (diff)
hardcode openvpn binary for bundle
Diffstat (limited to 'src/leap/bitmask/services/eip/linuxvpnlauncher.py')
-rw-r--r--src/leap/bitmask/services/eip/linuxvpnlauncher.py36
1 files changed, 7 insertions, 29 deletions
diff --git a/src/leap/bitmask/services/eip/linuxvpnlauncher.py b/src/leap/bitmask/services/eip/linuxvpnlauncher.py
index 791c318c..6d54c27b 100644
--- a/src/leap/bitmask/services/eip/linuxvpnlauncher.py
+++ b/src/leap/bitmask/services/eip/linuxvpnlauncher.py
@@ -100,41 +100,19 @@ leapfile = lambda f: "%s/%s" % (SYSTEM_CONFIG, f)
class LinuxVPNLauncher(VPNLauncher):
PKEXEC_BIN = 'pkexec'
-
- # FIXME should get the absolute path to openvpn. See #5592
- OPENVPN_BIN = 'openvpn'
BITMASK_ROOT = "/usr/sbin/bitmask-root"
- # FIXME get ABSOLUTE PATH
- OPENVPN_BIN_PATH = os.path.join(
- get_path_prefix(), "..", "apps", "eip", OPENVPN_BIN)
-
# We assume this is there by our openvpn dependency, and
# we will put it there on the bundle too.
- # TODO adapt to the bundle path.
- OPENVPN_DOWN_ROOT_BASE = "/usr/lib/openvpn/"
- OPENVPN_DOWN_ROOT_FILE = "openvpn-plugin-down-root.so"
- OPENVPN_DOWN_ROOT_PATH = "%s/%s" % (
- OPENVPN_DOWN_ROOT_BASE,
- OPENVPN_DOWN_ROOT_FILE)
-
- # XXX Should be able to pick the right resolvconf script
- # on the fly.
- RESOLV_UPDATE_FILE = "resolv-update"
- RESOLV_UPDATE_SCRIPT = leapfile(RESOLV_UPDATE_FILE)
-
- RESOLVCONF_FILE = "update-resolv-conf"
- RESOLVCONF_SCRIPT = leapfile(RESOLVCONF_FILE)
-
- UP_SCRIPT = RESOLVCONF_SCRIPT
- DOWN_SCRIPT = RESOLVCONF_SCRIPT
-
- UPDOWN_FILES = (UP_SCRIPT, DOWN_SCRIPT)
+ if flags.STANDALONE:
+ OPENVPN_BIN_PATH = "/usr/sbin/leap-openvpn"
+ else:
+ OPENVPN_BIN_PATH = "/usr/sbin/openvpn"
- # XXX GET BOTH POLKIT FILES: the one for vpn and the other for the wrapper
POLKIT_PATH = LinuxPolicyChecker.get_polkit_path()
- OTHER_FILES = (POLKIT_PATH, RESOLV_UPDATE_SCRIPT, RESOLVCONF_SCRIPT,
- BITMASK_ROOT)
+
+ # XXX openvpn binary TOO
+ OTHER_FILES = (POLKIT_PATH, BITMASK_ROOT)
@classmethod
def maybe_pkexec(kls):