Protection from the dreaded "rm -fr /"

Dag-Erling Smørgrav des at des.no
Sun Oct 3 13:34:09 PDT 2004


"M. Warner Losh" <imp at bsdimp.com> writes:
> rm doesn't have to live in the chroot.  Consider
> 	chroot /some/path/to/a/chroot rm -rf /
> in this case, everything under the /some/path/to/a/chroot would be
> removed.  However, the rm that's running is outside of the chroot.

Wrong, and I'd be interested to hear how you think chroot(8) would
pull that off if it were the case.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list