Chroot Jailとは?
chroot jailはchroot操作を使ってプロセスの新しいルートディレクトリを設定し、プロセスが開くpathが選んだサブツリー内で解決されるようにします。プロセスはそのサブツリー外のファイルを名指しできなくなり、読み取りや実行できるものが制限されます。containerより前から存在し、filesystemのビューのみを隔離し、他のリソースは隔離しません。
なぜ重要か
chrootは、buildやテスト向けに最小で再現可能な環境を作る軽量な方法です。完全なcontainerより弱いため、それ自体はセキュリティ境界というより足がかりです。
関連ガイド
What Is a Linux Namespace?A Linux namespace gives a group of processes their own isolated view of a system resource, such as process ID…
What Is a Bind Mount?A bind mount makes an existing directory or file appear at a second path, so the same content is reachable fr…
What Is an Overlay Filesystem?An overlay filesystem stacks a writable layer on top of read-only layers, presenting a merged view while keep…