chroot

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2020 Sep 27 10:49
Editor
Edited
Edited
2024 May 3 5:41
Refs
Refs
Traditional sandbox first appeared in Unix in 1979, BSD shortly afterwards.
changes the meaning of "/" for a process (and its children). chroot("/tmp/jail")will disallow processes from getting out of the jail. And used to be the de-facto sandboxing utility
 
 
root 밖으로 벗어날 수 없음 일반적으로
하지만 escape_chroot.c 같은 파일로 탈옥가능
탈옥했다는 거는 real root를 취득했다는 말
 
 

chroot pitfalls: previously open resources

Neither of the effects of chroot() do anything to previously-open resources.
 
 
 

docker image chroot

 
 
 
 
 
 

Recommendations