From 79692ed523a598386844b74993aeac4460decf3b Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 29 Dec 2021 16:54:04 -0500 Subject: [PATCH] cptbox: check faccessat2 instead of always denying --- dmoj/cptbox/isolate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dmoj/cptbox/isolate.py b/dmoj/cptbox/isolate.py index ffcd6a6b5..b8e3fb3aa 100644 --- a/dmoj/cptbox/isolate.py +++ b/dmoj/cptbox/isolate.py @@ -50,6 +50,7 @@ def __init__(self, read_fs, write_fs=None, writable=(1, 2)): sys_openat: self.check_file_access_at('openat', is_open=True), sys_open: self.check_file_access('open', 0, is_open=True), sys_faccessat: self.check_file_access_at('faccessat'), + sys_faccessat2: self.check_file_access_at('faccessat2'), sys_access: self.check_file_access('access', 0), sys_readlink: self.check_file_access('readlink', 0), sys_readlinkat: self.check_file_access_at('readlinkat'),