polkit: on async pk requests, re-validate action/details
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Jan 2020 15:52:10 +0000 (16:52 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Feb 2020 16:07:08 +0000 (17:07 +0100)
commit0697d0d972c8d91395eb539a8e87e4aec8b37b75
treeb02a412c7f355ed5a20bedcda666e5b1b946bc97
parent2589995acdb297a073270b54d8fff54b98fa57e9
polkit: on async pk requests, re-validate action/details

When we do an async pk request, let's store which action/details we used
for the original request, and when we are called for the second time,
let's compare. If the action/details changed, let's not allow the access
to go through.

(cherry picked from commit 7f56982289275ce84e20f0554475864953e6aaab)
src/shared/bus-polkit.c