Colon in user results in invalid qrexec command #9154
Labels
affects-4.1
This issue affects Qubes OS 4.1.
affects-4.2
This issue affects Qubes OS 4.2.
C: core
diagnosed
Technical diagnosis has been performed (see issue comments).
P: default
Priority: default. Default priority for new issues, to be replaced given sufficient information.
T: bug
Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
How to file a helpful issue
Qubes OS release
R4.2, but this problem is probably older than R4.1.
Brief summary
If one passes
--user=a:b
(or any other string containing a colon) toqvm-run
in dom0, the colon is interpreted as the end of the username, rather than as part of it.Steps to reproduce
Either:
qvm-run --user=
that contains a colon.user=
keyword in a qrexec policy that contains a colon.Expected behavior
Error stating that usernames in qrexec cannot contain a colon.
Actual behavior
Colon is interpreted as end of the username, and everything after it is interpreted as the command. For instance,
qvm-run --user=DEFAULT:nogui
is equivalent toqvm-run --no-gui
.The text was updated successfully, but these errors were encountered: