polkit: on async pk requests, re-validate action/details 35/287435/3
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Jan 2020 15:52:10 +0000 (16:52 +0100)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 31 Jan 2023 02:55:32 +0000 (11:55 +0900)
commitb6b294f29404bf5534aab58479aaf386335f5e5f
tree928fa707435012f3cee69960bc5c20c28c2df773
parent34d177efeb8fe41ff1fb1048393bd0eea0607deb
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.

Origin: upstream, https://github.com/systemd/systemd/commit/7f56982289275ce84e20f0554475864953e6aaab
Change-Id: I677423b7fba07222e39b7df965d3896f4d2f2875
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/shared/bus-polkit.c