openedx / codejail

Secure code execution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does unsafe code raise an exception?

goehle opened this issue · comments

I was following the readme for this and under the Using CodeJail section it mentions that the unsafe code should throw an exception. When I tried it the code did not print out the files in /etc, but it didn't throw an exception either. I didn't know if I'm incorrectly configured or if things have changed. One thing I had to do was

codejail.jail_code.configure('python', '<SANDENV>/bin/python','sandbox')

instead of the written

codejail.jail_code.configure('python', '<SANDENV>/bin/python')
commented

Can you tell me the reason?
Now I'm getting the same problem… so confused