Skip to content

Commit

Permalink
tests: adjust qubes.Filecopy argument
Browse files Browse the repository at this point in the history
It was renamed from allow-unsafe-characters to allow-all-names

See QubesOS/qubes-core-agent-linux#508

QubesOS/qubes-issues#8332
(cherry picked from commit 872119f)
  • Loading branch information
marmarek committed Jun 25, 2024
1 parent cb051e0 commit 0a98941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes/tests/integ/vm_qrexec_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ def test_140_qrexec_filecopy_unsafe_name(self):
self.loop.run_until_complete(self.testvm1.run_for_stdio(
f"cp /etc/passwd /tmp/{name}"))
with self.qrexec_policy('qubes.Filecopy+', self.testvm1, self.testvm2), \
self.qrexec_policy('qubes.Filecopy+allow-unsafe-characters', self.testvm1, self.testvm2, allow=False):
self.qrexec_policy('qubes.Filecopy+allow-all-names', self.testvm1, self.testvm2, allow=False):
with self.assertRaises(subprocess.CalledProcessError):
self.loop.run_until_complete(
self.testvm1.run_for_stdio(
Expand Down

0 comments on commit 0a98941

Please sign in to comment.