[gnome-shell] introspect: Check whitelist also for GetRunningWindows()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] introspect: Check whitelist also for GetRunningWindows()
- Date: Wed, 18 Sep 2019 16:27:47 +0000 (UTC)
commit e0947b01bd636dfbb59f87f0008eb8cdbc26e845
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 c7fb3a7128..f256555cb8 100644
--- a/js/misc/introspect.js
+++ b/js/misc/introspect.js
@@ -127,7 +127,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]