GitHub - corerd/chroot_tools: macOS chroot support tools · GitHub
Skip to content

Latest commit

 

History

4 Commits

Folders and files

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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages