https://github.com/proot-me/proot-rs/pull/11/files#r506852409
https://github.com/proot-me/proot-rs/issues/6#issuecomment-805834838
In the plan
Create a (also could be more) rootfs for all unit test (maybe even for integration test). So that the result of test does not depend on the state of the files in the host file system.
[ ] runc setup thier rootfs with docker image of busybox. With glibc and dynamic linker inside.
https://github.com/opencontainers/runc/blob/0d49470392206f40eaab3b2190a57fe7bb3df458/tests/integration/get-images.sh#L56
[ ] occlum setup thier rootfs with bash scripts(i.e. mkdir xxx). But use the pre-compiled libc.so and ld-musl-x86_64.so.1. User program need to be compiled with compiler provided by occlum.
https://github.com/occlum/occlum/blob/master/tools/occlum#L150
[ ] setup with bash scripts like occlum, but copy basic library files from host