From 2cf32806dcce2d41920be28bd0e7d12e5d049357 Mon Sep 17 00:00:00 2001 From: kali Date: Mon, 27 Jul 2020 18:18:38 +0200 Subject: [pkg] update build script for openvpn --- pkg/helper/linux.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pkg/helper/linux.go') diff --git a/pkg/helper/linux.go b/pkg/helper/linux.go index f1e21c8..d6f30f2 100644 --- a/pkg/helper/linux.go +++ b/pkg/helper/linux.go @@ -1,5 +1,5 @@ // +build linux -// Copyright (C) 2018 LEAP +// Copyright (C) 2018, 2020 LEAP // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -34,12 +34,15 @@ const ( var ( snapOpenvpnPath = "/snap/bin/" + config.BinaryName + ".openvpn" - platformOpenvpnFlags = []string{ +) + +func getPlatformOpenvpnFlags() []string { + return []string{ "--script-security", "1", "--user", openvpnUser, "--group", openvpnGroup, } -) +} func parseCliArgs() { // linux helper does not reply to args -- cgit v1.2.3