Why chroot is considered insecure?

Because, in most instances, a root process can easily exit the chroot. This is by design, as chroot was never intended as a security device.

Alan Cox somewhat famously berated a developer that submitted a kernel patch to “fix” this behavior, claiming that chroot has been abused as a security device, but was never intended to be one.

Leave a Comment