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)
committerMichael Biebl <biebl@debian.org>
Mon, 27 Apr 2020 17:02:57 +0000 (18:02 +0100)
commitee95d560592059820e3336b90e07045f2e93081c
tree4ca94ac82e52baa068ae24740a996c8f5efdf14e
parentd29b255f4bb00defc30b917d8174c460101ae0cd
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)
(cherry picked from commit 0697d0d972c8d91395eb539a8e87e4aec8b37b75)
(cherry picked from commit 54791aff01aa93a8b621808d80ab506b54f245c8)
(cherry picked from commit 70d0f5ea5952a0cedd84c352070613df4ba5fc8f)

Gbp-Pq: Name polkit-on-async-pk-requests-re-validate-action-details.patch
src/shared/bus-polkit.c