diff options
author | Mart Raudsepp <leio@gentoo.org> | 2020-08-13 23:38:14 +0300 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2020-08-13 23:38:20 +0300 |
commit | 9c4bb6c530c0a64b7e0c776806882026798bc1dc (patch) | |
tree | 087e07fac33bc1d55c79fe7f7a1d6658a9227a34 /gnome-base/gnome-shell/files | |
parent | dev-perl/DBICx-TestDatabase: Cleanup old 0.50.0 (diff) | |
download | gentoo-9c4bb6c530c0a64b7e0c776806882026798bc1dc.tar.gz gentoo-9c4bb6c530c0a64b7e0c776806882026798bc1dc.tar.bz2 gentoo-9c4bb6c530c0a64b7e0c776806882026798bc1dc.zip |
gnome-base/gnome-shell: backport fix for CVE-2020-17489
Bug: https://bugs.gentoo.org/736802
Package-Manager: Portage-2.3.103, Repoman-2.3.20
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'gnome-base/gnome-shell/files')
-rw-r--r-- | gnome-base/gnome-shell/files/3.34.5-CVE-2020-17489.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnome-base/gnome-shell/files/3.34.5-CVE-2020-17489.patch b/gnome-base/gnome-shell/files/3.34.5-CVE-2020-17489.patch new file mode 100644 index 000000000000..c6ed147c5a25 --- /dev/null +++ b/gnome-base/gnome-shell/files/3.34.5-CVE-2020-17489.patch @@ -0,0 +1,47 @@ +From e7f7da78d4d5a9abae780589810bd012300442e9 Mon Sep 17 00:00:00 2001 +From: Ray Strode <rstrode@redhat.com> +Date: Mon, 27 Jul 2020 10:58:49 -0400 +Subject: [PATCH] loginDialog: Reset auth prompt on vt switch before fade in + +At the moment, if a user switches to the login screen vt, +the login screen fades in whatever was on screen prior, and +then does a reset. + +It makes more sense to reset first, so we fade in what the +user is going to interact with instead of what they interacted +with before. + +Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2997 +(cherry picked from commit 13137aad9db52223e8b62cecbd3456f4a7f66f04) +--- + js/gdm/loginDialog.js | 9 ++++----- + 1 file changed, 4 insertions(+), 5 deletions(-) + +diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js +index c3f90dc58..6b35ebb16 100644 +--- a/js/gdm/loginDialog.js ++++ b/js/gdm/loginDialog.js +@@ -920,16 +920,15 @@ var LoginDialog = GObject.registerClass({ + if (this.opacity == 255 && this._authPrompt.verificationStatus == AuthPrompt.AuthPromptStatus.NOT_VERIFYING) + return; + ++ if (this._authPrompt.verificationStatus !== AuthPrompt.AuthPromptStatus.NOT_VERIFYING) ++ this._authPrompt.reset(); ++ + this._bindOpacity(); + this.ease({ + opacity: 255, + duration: _FADE_ANIMATION_TIME, + mode: Clutter.AnimationMode.EASE_OUT_QUAD, +- onComplete: () => { +- if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.NOT_VERIFYING) +- this._authPrompt.reset(); +- this._unbindOpacity(); +- } ++ onComplete: () => this._unbindOpacity() + }); + } + +-- +2.20.1 + |