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)
committerAdrian Bunk <bunk@debian.org>
Thu, 29 Jun 2023 13:57:02 +0000 (14:57 +0100)
commitf570debc4980eb9afa3cf27ebe132cdd587d2c1b
treeb0fffdd12c28d9f036653732d0f990b755c19b56
parent19f5859cf5ecd0f17dfc4ed8dccf1008a996abc8
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