Untrusted environment: Difference between revisions

Content deleted Content added
basic draft page
 
Line 30:
Sometimes chroot jails are used to add a layer of security to
<lang bash>mkdir ~/jail
chdircd ~/jail;
chroot ~/jail;
setXXuidsetuid(9); # if 9 is the userid of a non-root user
rm /etc/hosts # actually points to ~/jail/etc/hosts</lang>