polkit: map POLKIT_ALWAYS_QUERY to new polkit flag
authorLuca Boccassi <bluca@debian.org>
Thu, 27 Jun 2024 19:55:34 +0000 (20:55 +0100)
committerLuca Boccassi <bluca@debian.org>
Thu, 18 Jul 2024 15:11:26 +0000 (16:11 +0100)
commit5c48335ef4cc1c930c86c6e893f3ab3e5472f7f6
tree8cdb5d2da5c470ba268d9bdd1b8f7f814e6c36f5
parent4698411ff3d31c8de614bcaa4ad7ccbb209f8b0d
polkit: map POLKIT_ALWAYS_QUERY to new polkit flag

polkitd by default just waves through requests from a root process.
A new POLKIT_CHECK_AUTHORIZATION_FLAGS_ALWAYS_CHECK flag was added
to main (will be part of v125 when it ships) that forces it to go
through the policy checks for root too. Previous versions will just
ignore it.

Change the flags handling slightly so that we pass this or the
interactive flags through, as the values match what polkit expects.
src/shared/bus-polkit.c
src/shared/bus-polkit.h