ioi / isolate

Sandbox for securely executing untrusted programs
Other
1.05k stars 157 forks source link

Directory Mount not working ? #114

Closed DilLip-Chowdary-Codes closed 1 year ago

DilLip-Chowdary-Codes commented 2 years ago

Hi,

I'm completely new to isolate, here is what I ran, and what I got.

Command i ran

isolate --full-env --dir=/tmp --run -- /usr/bin/ls && /usr/bin/python3 main.py

Output

dummy_file.txt

OK (0.004 sec real, 0.004 sec wall)
/usr/bin/python3: can't open file 'main.py': [Errno 2] No such file or directory

Here what I'm expecting is to run the program which is in /tmp directory in my local system, through isolate.

Am I doing anything wrong?

gollux commented 2 years ago

You are not telling isolate to run it from /tmp, but from the current directory.

Besides, mounting a world-writeable directory into the sandbox is not a good idea.