I am trying to run C# executables in a chroot but I can't find a way to do so. Inside the chroot, besides my executable, I have copied the following inside my jail
- /bin/sh
- /bin/bash
- /usr/bin/mono
- /usr/lib/mono
- All the libraries that /bin/sh and /bin/bash need (found by ldd)
My problem is that Mono C# does not do Dynamic Linking, so I cannot use ldd to find the dependencies of my software and when I try to do sudo chroot jail ./Program.exe I get the following message
chroot: failed to run command./Program.exe': No such file or directory`
Could you please help me on that? Thanks
My Operating System is Ubuntu 10.04 x64