Skip to content

Commit

Permalink
fixup! chore: upgrade dockerfile ubuntu version
Browse files Browse the repository at this point in the history
  • Loading branch information
MoisesGSalas committed Sep 15, 2024
1 parent 2bf1d8a commit 3fdacff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions codejail/tests/test_jail_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ def test_directories_are_copied(self):
files=[file_here("hello.txt"), file_here("pylib")]
)
self.assertResultOk(res)
self.assertEqual(res.stdout, bytes(textwrap.dedent("""\
assert res.stdout == bytes(textwrap.dedent("""\
('.', ['pylib', 'tmp'], ['hello.txt', 'jailed_code'])
('./pylib', [], ['module.py'])
('./tmp', [], [])
"""), 'utf-8'))
"""), 'utf-8')

def test_executing_a_copied_file(self):
res = jailpy(
Expand Down
6 changes: 3 additions & 3 deletions sudoers-file/01-sandbox-python-3.11
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ubuntu ALL=(sandbox) SETENV:NOPASSWD:/home/sandbox/codejail_sandbox-python3.11/bin/python
ubuntu ALL=(sandbox) SETENV:NOPASSWD:/usr/bin/find
ubuntu ALL=(ALL) NOPASSWD:/usr/bin/pkill
codejail ALL=(sandbox) SETENV:NOPASSWD:/home/sandbox/codejail_sandbox-python3.11/bin/python
codejail ALL=(sandbox) SETENV:NOPASSWD:/usr/bin/find
codejail ALL=(ALL) NOPASSWD:/usr/bin/pkill

Defaults!/home/sandbox/codejail_sandbox-python3.11/bin/python !requiretty
Defaults!/usr/bin/find !requiretty
Expand Down
6 changes: 3 additions & 3 deletions sudoers-file/01-sandbox-python-3.8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ubuntu ALL=(sandbox) SETENV:NOPASSWD:/home/sandbox/codejail_sandbox-python3.8/bin/python
ubuntu ALL=(sandbox) SETENV:NOPASSWD:/usr/bin/find
ubuntu ALL=(ALL) NOPASSWD:/usr/bin/pkill
codejail ALL=(sandbox) SETENV:NOPASSWD:/home/sandbox/codejail_sandbox-python3.8/bin/python
codejail ALL=(sandbox) SETENV:NOPASSWD:/usr/bin/find
codejail ALL=(ALL) NOPASSWD:/usr/bin/pkill

Defaults!/home/sandbox/codejail_sandbox-python3.8/bin/python !requiretty
Defaults!/usr/bin/find !requiretty
Expand Down

0 comments on commit 3fdacff

Please sign in to comment.