Add chroot/setuid functionality