cmd/tailscale: make configure-host on Synology also add CAP_NET_RAW

Updates #4012

Change-Id: Ic45b5709a73b4f1cd466823e177b52d1d20ba84e
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2022-02-23 07:34:19 -08:00 committed by Brad Fitzpatrick
parent 38c59c0ad2
commit 29279b34fa
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ func runConfigureHost(ctx context.Context, args []string) error {
}
return err
}
if out, err := exec.Command("/bin/setcap", "cap_net_admin+eip", daemonBin).CombinedOutput(); err != nil {
if out, err := exec.Command("/bin/setcap", "cap_net_admin,cap_net_raw+eip", daemonBin).CombinedOutput(); err != nil {
return fmt.Errorf("setcap: %v, %s", err, out)
}
fmt.Printf("Done. To restart Tailscale to use the new permissions, run:\n\n sudo synosystemctl restart pkgctl-Tailscale.service\n\n")