Description: Reject mkdir
 The sandboxed pypy will attempt to create missing __pycache__ directories.
 We need to fail in a way that it can handle.
Bug-Debian: https://bugs.debian.org/825702
Origin: upstream, https://bitbucket.org/pypy/pypy/commits/0513b4a90c28498b0abca8c42f5c0641f5ccae9a

--- a/rpython/translator/sandbox/sandlib.py
+++ b/rpython/translator/sandbox/sandlib.py
@@ -530,6 +530,9 @@
     def do_ll_os__ll_os_unlink(self, vpathname):
         raise OSError(errno.EPERM, "write access denied")
 
+    def do_ll_os__ll_os_mkdir(self, vpathname, mode=None):
+        raise OSError(errno.EPERM, "write access denied")
+
     def do_ll_os__ll_os_getuid(self):
         return UID
     do_ll_os__ll_os_geteuid = do_ll_os__ll_os_getuid
