-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GUI-related feature flags not validated #7730
Comments
Even documented
All very confusing. |
Documentation says "To change a given GUI option globally, set the gui-default-{option} feature on the GuiVM for that qube." - if your GuiVM is dom0 (the default) then |
This makes it clear: The confusion about this behavior could perhaps be reduced by
|
Can you clarify? What exact command you tried and what was the result? |
I repeated the tests now, and Still it would be nice if any attempt to set a |
This appears to be easy to solve. The current |
User-end validation (within qvm-start-daemon) is done. It skips invalid values and logs an error messages. Also sends a visual notification via Now the same logic could be applied to qubesd to forbid users from setting invalid values for recognized features and setting unknown There are some concerns. Specific libraries are required for validating (clipboard) key sequences and valid |
The PR for this issue (including unittests) is done. All CI/CD checks are green Review priority: low Notes: Color and keyboard sequence verification is done via direct connection to X Display via |
Since the change is has noticeable regression potential, I'm not going to backport it to R4.2, at least not yet. |
How to file a helpful issue
Qubes OS release
R4.1
Brief summary
Various GUI-related features are not validated by qubesd. Once QubesOS/qubes-core-admin-client#221 lands, this will cause qvm-start-daemon to produce an invalid GUI daemon configuration file, preventing the GUI daemon from starting.
Steps to reproduce
Have QubesOS/qubes-core-admin-client#221 and set
gui-subwindows
feature to something invalid.Expected behavior
Feature set call is rejected by qubesd. Attempts to set unknown
gui-*
features should likely be rejected unconditionally, as these could acquire a meaning in the future.Actual behavior
Feature set call is not rejected by qubesd.
The text was updated successfully, but these errors were encountered: