Jailkit - allowing use of Java/Python
- by James hooker
I'm looking to allow Jailed users to use JAVA (JRE) to execute their own Java files, similarly with Python to execute py scripts.
I've tried adding the JAVA binary (/usr/bin/java) to a jail using the following
jk_cp /path/to/jail /usr/bin/java
This seems to copy some of the libraries across, aswell as the Java binary itself, however the jailed user is still unable to execute Java. It complains first of all of a missing lib called libsli.so. I copied that across and it then complains about libjava.so which I proceeded to copy across to, to no avail.
Does anyone have experience with enabling the execution of Java within a jailed environment?
This is under Ubuntu 10.04 64-bit, with Jailkit 2.11.