]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bus-polkit.h
polkit: allow checking if we already acquired some action
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Feb 2024 16:06:11 +0000 (17:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Mar 2024 09:42:13 +0000 (10:42 +0100)
commitb9632ec42f58366efe629683c4c351865272c2df
tree76bac0fe95d683a4e3d298631e283e4215a56c7a
parent95db87ffede0dd70719835d6f4b0ff1d8b02f259
polkit: allow checking if we already acquired some action

This adds a new helper that basically just wraps
async_polkit_query_have_action() and allows calling this without
actually triggering a PK authentication operation: it just checks if we
aleady have acquired an action or not.
src/shared/bus-polkit.c
src/shared/bus-polkit.h