Open thelamer opened 3 months ago
I am trying to copy some directory from host to proot, and cp -r
shows setting permissions for ...: no such file or directory
. However it did create the directory for me. So I tried strace and found that the mkdirat
and newfstatat
are all OK, only fchmodat2
returns no such file or directory. So I guess if this is also a similar issue that it sends syscall to host file instead of proot.
Expected Behavior
When lstat is called by a process inside PRoot they would be caught and sent information on the current guest they are in.
Actual Behavior
lstat calls go directly to the host and will fail if the host lacks the files.
Steps to Reproduce the Problem
The easiest way I have to reproduce this is with proot-apps on an x86_64 linux host wrapping the signal application, on init it checks for the existence of
/opt/Signal/resources
using lstat and fails.Install proot-apps:
Install signal:
Run signal:
Now generate the path on the host:
The app will start normally as the lstat sanity check passes on init.
Specifications
Command Output
Notes
If this is expected behavior feel free to close this, but I think for isolating the guest, lstat syscalls need to be intercepted in some way and implementing this is a bit over my head.
Linking: https://github.com/linuxserver/proot-apps/issues/10