4 ms·`chroot()` has no place in a web application. The system call requires the process to be running as root.by duskwuff 7y ago`chroot()` has no place in a web application. The system call requires the process to be running as root.voltagex_ 7y agoCan you call that and then drop permissions?duskwuff 7y agoIn 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.