Skip to content

corerd/chroot_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Setting Up a chroot Jail

  1. Create a bin directory in jail and copy /bin/sh to this directory.

  2. Because sh binary is dynamically linked to shared libraries, you need to copy these libraries into jail /lib as well. Use otool to display the shared libraries dependencies, and copy the necessary libraries.

    A Practical Guide to UNIX for Mac OS X Users

    Creating basic chroot environment.

  3. Also copy /usr/lib/dyld to your chroot jail to get the dynamic linker. If that is not present, then attempting to execute anything in the chroot jail will fail without any error other than Killed: 9

    https://stackoverflow.com/a/34116191

Other References

Setting Up a Chroot user/group for SSH

Mac OS X El Capitan Installer Removes Custom Group ID And Membership

About

macOS chroot support tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published