From 38bc751b9729c98329f19d46f2bb1492fe482295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 30 Jul 2017 14:48:21 +0200 Subject: [PATCH] qubespolicy: fix handling icons dictionary Build icons dictionary from all provided icons, not only those allowed as target. Specifically, source may not be allowed target (but the window need its icon). --- qubespolicy/agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qubespolicy/agent.py b/qubespolicy/agent.py index e06c4681..f0bf4df3 100644 --- a/qubespolicy/agent.py +++ b/qubespolicy/agent.py @@ -54,9 +54,9 @@ class PolicyAgent(object): icons): # pylint: disable=invalid-name entries_info = {} - for target in targets: - entries_info[target] = {} - entries_info[target]['icon'] = icons.get(target, None) + for entry in icons: + entries_info[entry] = {} + entries_info[entry]['icon'] = icons.get(entry, None) response = qubespolicy.rpcconfirmation.confirm_rpc( entries_info, source, service_name,