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).
This commit is contained in:
Marek Marczykowski-Górecki 2017-07-30 14:48:21 +02:00
부모 d650a90289
커밋 38bc751b97
No known key found for this signature in database
GPG 키 ID: 063938BA42CFA724

파일 보기

@ -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,