forked from QubesOS/qubes-gui-daemon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xside: Introduce override_redirect protection
Prior to this commit, an application (malicious or not) could create a very large window with the override_redirect attribute set. If the window in question was large enough to prevent the user from interacting with the window manager and/or Qubes OS widgets, it was impossible to terminate the application and/or the hosting VM via regular means. Hence, this commit introduces a simple protection measure against very large windows that have the override_redirect attribute set. The protection works by unsetting the override_redirect attribute for windows that attempt to cover more than 90% of the screen. Doing so allows the user to move and/or minimize the windows in question. When the protection takes effect for the first time, the user is warned once with a persistent notification about what just happened and is informed of a way to disable this protection on a per-VM basis. ("persistent" notifications need to be clicked on to be dismissed.) The protection feature can be disabled via /etc/qubes/guid.conf in dom0, and this commit introduces an example in the aforementioned file along with an explanation to help users.
- Loading branch information
Showing
3 changed files
with
90 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters