16 lines
542 B
Plaintext
16 lines
542 B
Plaintext
# chin
|
|
|
|
abbreviation of "chroot in."
|
|
|
|
sets up /proc, /dev, /sys, and /tmp directories if they do not already exist in
|
|
the target directory, chroots into the target directory and executes the given
|
|
command, and then tears down whatever directories it set up upon exiting.
|
|
|
|
designed to set up build environments for code that already comes from a trusted
|
|
source. do not assume the resulting chroot conveys any sort of security!
|
|
consider this an organizational tool more than anything else.
|
|
|
|
40 SLOC.
|
|
|
|
usage: chin.sh <chroot target> <commands>
|