mirror of https://github.com/proot-me/proot.git
26 lines
516 B
Bash
26 lines
516 B
Bash
if [ ! -x ${ROOTFS}/bin/true ] || [ -z `which env` ]; then
|
|
exit 125;
|
|
fi
|
|
|
|
! ${PROOT} -r ${ROOTFS} /true
|
|
[ $? -eq 0 ]
|
|
|
|
! ${PROOT} -r ${ROOTFS} ./true
|
|
[ $? -eq 0 ]
|
|
|
|
! env PATH='' ${PROOT} -r ${ROOTFS} true
|
|
[ $? -eq 0 ]
|
|
|
|
! env PATH='' ${PROOT} -r ${ROOTFS} -w /bin true
|
|
[ $? -eq 0 ]
|
|
|
|
env PATH='' ${PROOT} -r ${ROOTFS} -w /bin ./true
|
|
|
|
! env --unset PATH ${PROOT} -r ${ROOTFS} true
|
|
[ $? -eq 0 ]
|
|
|
|
! env --unset PATH ${PROOT} -r ${ROOTFS} -w /bin true
|
|
[ $? -eq 0 ]
|
|
|
|
env --unset PATH ${PROOT} -r ${ROOTFS} -w /bin ./true
|