Skip to content

Commit 3e5a740

Browse files
committed
[comment] highlighting drop privileges
1 parent bfd5b7f commit 3e5a740

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/socket-proxy/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func main(){
4949
},
5050
}
5151

52+
// drop privileges since only the proxy must access the socket as root and nothing else
5253
if err := syscall.Setgid(1000); err != nil {
5354
log.Fatalf("could not set GID to 1000 %v", err)
5455
}

0 commit comments

Comments
 (0)