From 82d6ac96e4949098defe9ca23dda0a5237e342d4 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Mon, 18 Mar 2024 23:03:18 +0300 Subject: [PATCH] set_cap: helper script to set CAP_NET_ADMIN for the binary Signed-off-by: HeshamTB --- cmd/hvpn-node/set_cap.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 cmd/hvpn-node/set_cap.sh diff --git a/cmd/hvpn-node/set_cap.sh b/cmd/hvpn-node/set_cap.sh new file mode 100755 index 0000000..b9cc6b3 --- /dev/null +++ b/cmd/hvpn-node/set_cap.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set +x + +sudo setcap 'cap_net_admin=+ep' hvpn-node