pypy2-v5.5.0 sandbox issues Windows

Issue #2442 new
rauts created an issue

Building the executable with Visual C++ 2008 32bit works.

C:\pypy\pypy\goal>C:\pypy\pypy.exe C:\pypy\rpython\bin\rpython -O2 --sandbox targetpypystandalone.py

But runnig it results into

C:\pypy>pypy.exe pypy\sandbox\pypy_interact.py pypy\goal\pypy-c.exe
Not implemented: sandboxing for external function 'GetFullPathNameA'
debug: OperationError:
debug:  operror-type: RuntimeError
debug:  operror-value: None
[Subprocess exit code: 1]

Something similar was discussed over two years ago #1876. I'm not sure if I have to use the version from before 2014-10-05 or if there are any other options.

Comments (4)

  1. Armin Rigo

    It's unclear to me that Windows ever worked with sandboxing, as I didn't try. To fix, we need to look up at why the Windows-specific GetFullPathNameA() function is called; if it is reasonable, then we need to add support for sandboxing that function (which is very easy but needs to be done manually).

  2. Log in to comment