Hacker News new | past | comments | ask | show | jobs | submit login

Note though that both of these solutions are racy and so should not be done if "someone symlinking really fast and swapping the binaries" is in your threat model. Linux proc/self is safe though, just not the result from readlink.



Well that's true, but also something that can't be addressed within a currently running process afaik.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: