diff options
| author | ebiggers <ebiggers@google.com> | 2020-01-23 13:42:10 -0800 |
|---|---|---|
| committer | Joseph Richey <joerichey@google.com> | 2020-01-23 13:42:10 -0800 |
| commit | 6e4e557ca6f879627d877a4fc3815203a103e4ff (patch) | |
| tree | bb2da21e47b3e31849e137ed3bbdfbfd6cad4dd9 /security/privileges.go | |
| parent | f2eb79fb5fb10275c014b55c13e28ff02d3b70a8 (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/privileges.go')
| -rw-r--r-- | security/privileges.go | 7 |
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 |