Allow Linux setuid/setgid

This commit allows webhook to setuid/setgid when running on Linux.

Tested with:

go get -d

CGO_ENABLED=0 go build -ldflags="-s -w"

Correctly compiled, ran, setuid/setgid properly, and answered hook requests.
This commit is contained in:
christopher-conley 2023-07-22 23:00:50 -04:00
parent f187592147
commit f108a2b38e
4 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
// +build !windows,!linux
// +build linux !windows
package main