[gnome-shell/wip/rstrode/login-screen-extensions: 95/134] introspect: Check whitelist also for GetRunningWindows()




commit 6dccb1aa763eac83f6549e994cc0322f88399cfd
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Wed Sep 18 14:57:48 2019 +0200

    introspect: Check whitelist also for GetRunningWindows()
    
    Otherwise the xdg-desktop-portal-gtk screen cast widget won't work.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/732

 js/misc/introspect.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/misc/introspect.js b/js/misc/introspect.js
index 1e8300d0a7..cee6409a84 100644
--- a/js/misc/introspect.js
+++ b/js/misc/introspect.js
@@ -128,7 +128,8 @@ var IntrospectService = class {
         let apps = this._appSystem.get_running();
         let windowsList = {};
 
-        if (!this._isIntrospectEnabled()) {
+        if (!this._isIntrospectEnabled() &&
+            !this._isSenderWhitelisted(invocation.get_sender())) {
             invocation.return_error_literal(Gio.DBusError,
                                             Gio.DBusError.ACCESS_DENIED,
                                             'App introspection not allowed');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]