Description: Support unlink() in the sandbox VFS
 Now that pyc files aren't disableable, we try to unlink() one during startup.
 EPERM is handled correctly, but runtime errors are unexpected.
 So, let's just reject all unlink()s.
Author: Stefano Rivera <stefanor@debian.org>
Origin: upstream, https://bitbucket.org/pypy/pypy/commits/a806698962918799797af8e2c1da49207b8669d8

--- a/rpython/translator/sandbox/sandlib.py
+++ b/rpython/translator/sandbox/sandlib.py
@@ -540,6 +540,9 @@
         node = self.get_node(vpathname)
         return node.keys()
 
+    def do_ll_os__ll_os_unlink(self, vpathname):
+        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
