chiark / gitweb /
sd-bus: add API to check if a client has privileges
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Aug 2014 18:08:51 +0000 (20:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Aug 2014 18:08:51 +0000 (20:08 +0200)
commitdef9a7aa0182e5ecca3ac61b26f75136a5c4f103
treecb9da3fa3ad63f8c9e62c883cf821f23295c74d3
parent4311fa08fe7f3e702a2adb569fe20fb023a4b746
sd-bus: add API to check if a client has privileges

This is a generalization of the vtable privilege check we already have,
but exported, and hence useful when preparing for a polkit change.

This will deal with the complexity that on dbus1 one cannot trust the
capability field we retrieve via the bus, since it is read via
/proc/$$/stat (and thus might be out-of-date) rather than directly from
the message (like on kdbus) or bus connection (as for uid creds on
dbus1).

Also, port over all code to this new API.
src/hostname/hostnamed.c
src/libsystemd/sd-bus/bus-convenience.c
src/libsystemd/sd-bus/bus-objects.c
src/libsystemd/sd-bus/bus-util.c
src/libsystemd/sd-bus/bus-util.h
src/locale/localed.c
src/login/logind-dbus.c
src/systemd/sd-bus.h
src/timedate/timedated.c