daveagp / java_jail

chroot java jail, and JSON java trace printer
GNU Affero General Public License v3.0
79 stars 32 forks source link

Unable to run using safeexec #13

Open laalamrajesh opened 1 year ago

laalamrajesh commented 1 year ago

(1) Run this command (from java_jail): ./java/bin/java -cp .:cp:cp/javax.json-1.0.jar:java/lib/tools.jar traceprinter.InMemory < cp/traceprinter/test-input.txt

(2) Try with safeexec (from java_jail): /path/to/safeexec --chroot_dir . --exec_dir / --share_newnet --nproc 50 --mem 3000000 --nfile 30 --env_vars CLASSPATH=/cp/:/cp/javax.json-1.0.jar:/java/lib/tools.jar --exec /java/bin/java traceprinter.InMemory < cp/traceprinter/test-input.txt

(1) working fine but when i am running safexec i am getting below error. unable to debug it.

error 2 (No such file or directory): execve error

Command exited with non-zero status (1)
elapsed time: 0 seconds
memory usage: 0 kbytes
cpu usage: 0.000 seconds