]> git.ipfire.org Git - thirdparty/systemd.git/commit
polkit: turn "interactive" flag to polkit APIs into a proper flags field (#31715)
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Mar 2024 11:57:45 +0000 (12:57 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Mar 2024 11:57:45 +0000 (11:57 +0000)
commit29556b75d8025580eebe160a1fa1459965912ee2
tree9fe24bd2d823ce1f0e33ccbbbb7d8c76270a9649
parented01b92e1c92871bbd92711f280e2b2d15753f0e
polkit: turn "interactive" flag to polkit APIs into a proper flags field (#31715)

This adds for both the D-Bus and the Varlink flavours of our polkit
client api a flags parameter. And then folds the "bool interactive" flag
that the D-Bus version so far had, into a flag, and also adds support
for it in the Varlink API.

Since this means the Varlink API gained another parameter, let's do what
we already did for the D-Bus API and add a _full() version of the API
that has the flags and the good_uid parameter, and one without both.
src/creds/creds.c
src/home/homed-home-bus.c
src/hostname/hostnamed.c
src/locale/localed.c
src/login/logind-dbus.c
src/login/logind-session-dbus.c
src/login/logind-user-dbus.c
src/shared/bus-polkit.c
src/shared/bus-polkit.h