Protection from the dreaded "rm -fr /"

M. Warner Losh imp at bsdimp.com
Sun Oct 3 18:38:21 PDT 2004


In message: <xzpmzz3a6dj.fsf at dwp.des.no>
            des at des.no (Dag-Erling Smørgrav) writes:
: "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.

I was confused.

Warner


More information about the freebsd-hackers mailing list