Author: Stefano Rivera <stef...@rivera.za.net>
Branch: 
Changeset: r85044:0513b4a90c28
Date: 2016-06-08 22:39 +0200
http://bitbucket.org/pypy/pypy/changeset/0513b4a90c28/

Log:    Reject mkdir() in read-only sandbox filesystems

diff --git a/rpython/translator/sandbox/sandlib.py 
b/rpython/translator/sandbox/sandlib.py
--- 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
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to