Skip to content

Commit

Permalink
cptbox: check faccessat2 instead of always denying
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Dec 30, 2021
1 parent 9315a8e commit 79692ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dmoj/cptbox/isolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 79692ed

Please sign in to comment.