Skip to content
Snippets Groups Projects
Verified Commit 9f164550 authored by David Beniamine's avatar David Beniamine
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
*.sw?
jail/
setup.sh 0 → 100755
#!/bin/bash
BINARIES="bash ls vim"
cd $(dirname $0)
rm -rf jail
mkdir jail
cd jail
mkdir bin
mkdir lib
mkdir lib64
for b in $BINARIES; do
echo $b
cp -v $(which $b) ./bin/
for l in $(ldd bin/$b | grep '/lib' | sed 's@[^/]*\(/lib.*\) .*@\1@');do
if [[ "$l" == "/lib64/"* ]]; then
cp -v $l ./lib64/
else
cp -v $l ./lib/
fi
done
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment