Pypy sandbox - writing to /tmp -
i tring run python code in pypy sandbox. need output script doesn't interfere stdout.
i've read lot of sources , of them mentions, sanboxed script can write files virtual /tmp. not able achieve (all sources missing example).
if write access /tmp isn't possible, possible open pipe between sanboxed script , control script?
if none of possible, write binary data stdout? i'd tag begginning , ending of output in stdout, control script distinguish user output , output.
the virtual /tmp read-only; in fact attempt subprocess write file denied. if want change that, edit sources control outer process, far refuse attempt write. start do_ll_os__ll_os_open in rpython/translator/sandbox/sandlib.py.
Comments
Post a Comment