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

`chroot()` has no place in a web application. The system call requires the process to be running as root.



Can you call that and then drop permissions?


In theory, yes. But that's still bad, because it means that a nontrivial amount of your application code (as well as whatever is launching it, like the PHP-FPM server or the web server) is running as root.




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

Search: