News for hackers. Stuff that matters.
Re:Linux Namespaces and Go Don't Mix by brandon on Friday June 02, 2017 @10:38PM (#14474700)
The workaround functions by opening the privileged socket and re-executing the binary as an unprivileged user with access to the filehandle. Any background goroutines would exit with the privileged parent.

Also: please don't spawn goroutines during init(). There's generally a better time and place, and in the event that you justifiably need a package-level background routine you can spawn it on demand with a sync.Once.

There are no comments on this comment yet.