News for hackers. Stuff that matters.
Re:Show HN: Easy-to-configure Web Server in Go by sarnowski on Saturday July 27, 2013 @05:06PM (#6114431)
WARNING: I implemented a tiny library for that in go a while ago. Go under Linux is not safe! Linux is not posix compliant and only sets the IDs for the current thread. Go almost always spawned more threads before initializing your code which are then still owned by root and are in the threadpool for your goroutines:

https://github.com/sarnowski/mitigation/blob/master/mitigati...

Comments mentions safe OS and golang bugticket.

Re:Show HN: Easy-to-configure Web Server in Go by laumars on Saturday July 27, 2013 @11:48PM (#6115508)
I'm guessing it might depend on the point in your Go code whrn you setuid as the tests that I did on my own project, setuid changed the user id as expacted then the processes were spawned.

However you have given me reason to test my own code again and more thoroughly :-)