Skip to content

Commit

Permalink
executors: implement sys_fchmodat sandboxing for compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Sep 18, 2021
1 parent 2ea839a commit f3f64f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dmoj/executors/compiled_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ def handle_execve(debugger):
sys_flock: ALLOW,
sys_fsync: ALLOW,
sys_fadvise64: ALLOW,
# FIXME: this allows changing any FD that is open, not just RW ones.
sys_fchmodat: ALLOW,
sys_fchmodat: self.check_file_access_at('fchmodat', is_write=True),
sys_fchmod: ALLOW,
sys_fallocate: ALLOW,
sys_ftruncate: ALLOW,
Expand Down

0 comments on commit f3f64f4

Please sign in to comment.