summaryrefslogtreecommitdiff
path: root/pkg/helper/linux.go
diff options
context:
space:
mode:
authorkali <kali@leap.se>2020-07-27 18:18:38 +0200
committerRuben Pollan <meskio@sindominio.net>2020-10-13 19:08:40 +0200
commit2cf32806dcce2d41920be28bd0e7d12e5d049357 (patch)
tree5ecad10f0c2804ab0ded8380431490e475f57998 /pkg/helper/linux.go
parent211fc457329b074fd4331aec0c4fc5d765e9023f (diff)
[pkg] update build script for openvpn
Diffstat (limited to 'pkg/helper/linux.go')
-rw-r--r--pkg/helper/linux.go9
1 files changed, 6 insertions, 3 deletions
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