diff options
| author | Marin Ivanov <[email protected]> | 2019-03-25 00:46:46 +0200 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2019-03-25 00:53:11 +0200 |
| commit | d8ca90a99e8fed561db245f3e972d893334604f8 (patch) | |
| tree | fc26591d6727a71d29d42b8ae064b3e7982da8a6 /Makefile | |
| parent | 47971bdbe2ad58ac6749da632febc24c4b12da43 (diff) | |
Allow to drop privileges my changing uid/gid
This feature is only available for unix OSes and allow to setuid and
setgid after creating a listening socket.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,8 +1,11 @@ -linux-amd64: build/linux-amd64 -windows-amd64: build/windows-amd64.exe +SRC = $(wildcard *.go) -build/linux-amd64: $(SRC) +linux-amd64: build/tarpit-linux-amd64 + +windows-amd64: build/tarpit-windows-amd64.exe + +build/tarpit-linux-amd64: $(SRC) GOOS=linux GOARCH=amd64 go build -o "$@" -build/windows-amd64.exe: $(SRC) +build/tarpit-windows-amd64.exe: $(SRC) GOOS=windows GOARCH=amd64 go build -o "$@" |
