]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bus-polkit.h
bus-polkit: add support for authenticating varlink peers via polkit
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Nov 2023 17:21:21 +0000 (18:21 +0100)
committerLuca Boccassi <bluca@debian.org>
Wed, 3 Jan 2024 10:53:29 +0000 (11:53 +0100)
commitd04c1a1c8e7c95daa483d8d52d5fc4c25fbc67f2
tree4bf5a6e24249665b8eef02be64ff7fc39419e10d
parent35793c71e4276eceeac690680732f38e1a50475e
bus-polkit: add support for authenticating varlink peers via polkit

This extends our current polkit logic, so that we can in a very similar
fashion as we already can authenticate dbus peers authenticate varlink
connection peers.

polkit natively speaks dbus and can authentication dbus peers. To get
the same level of support for varlink we'll use authentication by
pidfd+uid. This requires polkit v124, and if that's not available it
will fallback to authorizing root only as before.

Co-authored-by: Luca Boccassi <bluca@debian.org>
src/shared/bus-polkit.c
src/shared/bus-polkit.h
src/shared/varlink.h