aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorebiggers <ebiggers@google.com>2020-01-23 13:42:10 -0800
committerJoseph Richey <joerichey@google.com>2020-01-23 13:42:10 -0800
commit6e4e557ca6f879627d877a4fc3815203a103e4ff (patch)
treebb2da21e47b3e31849e137ed3bbdfbfd6cad4dd9 /security
parentf2eb79fb5fb10275c014b55c13e28ff02d3b70a8 (diff)
privileges.go: remove a stale comment (#184)
The workaround for Go versions before 1.10 was already removed by commit 3022c1603d96 ("Ensure setting user privileges is reversible").
Diffstat (limited to 'security')
-rw-r--r--security/privileges.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/security/privileges.go b/security/privileges.go
index e5751b5..5bdd43c 100644
--- a/security/privileges.go
+++ b/security/privileges.go
@@ -32,13 +32,6 @@ package security
// between OS-level threads while it's running.
//
// See also: https://github.com/golang/go/issues/1435
-//
-// Also we need to wrap the libc functions in our own C functions rather than
-// calling them directly because in the glibc headers (but not necessarily in
-// the headers for other C libraries that may be used on Linux) they are
-// declared to take __uid_t and __gid_t arguments rather than uid_t and gid_t.
-// And while these are typedef'ed to the same underlying type, before Go 1.10,
-// cgo maps them to different Go types.
/*
#define _GNU_SOURCE // for getresuid and setresuid