chiark / gitweb /
bus: add new sd_bus_creds object to encapsulate process credentials
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Nov 2013 16:50:02 +0000 (17:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Nov 2013 17:42:18 +0000 (18:42 +0100)
commit5b12334d35eadf1f45cc3d631fd1a2e72ffaea0a
tree55682fbecfeb705adfaf0f78fd76f5c8dc219b1b
parent70f75a523b16ad495a7791d595ee3eececf75953
bus: add new sd_bus_creds object to encapsulate process credentials

This way we can unify handling of credentials that are attached to
messages, or can be queried for bus name owners or connection peers.

This also adds the ability to extend incomplete credential information
with data from /proc,

Also, provide a convenience call that will automatically determine the
most appropriate credential object for an incoming message, by using the
the attached information if possible, the sending name information if
available and otherwise the peer's credentials.
33 files changed:
.gitignore
Makefile.am
src/core/dbus-manager.c
src/core/dbus.c
src/core/selinux-access.c
src/core/service.c
src/libsystemd-bus/bus-control.c
src/libsystemd-bus/bus-convenience.c
src/libsystemd-bus/bus-creds.c [new file with mode: 0644]
src/libsystemd-bus/bus-creds.h [new file with mode: 0644]
src/libsystemd-bus/bus-dump.c
src/libsystemd-bus/bus-dump.h
src/libsystemd-bus/bus-internal.h
src/libsystemd-bus/bus-kernel.c
src/libsystemd-bus/bus-message.c
src/libsystemd-bus/bus-message.h
src/libsystemd-bus/bus-util.c
src/libsystemd-bus/bus-util.h
src/libsystemd-bus/busctl.c
src/libsystemd-bus/libsystemd-bus.sym
src/libsystemd-bus/sd-bus.c
src/libsystemd-bus/test-bus-chat.c
src/libsystemd-bus/test-bus-creds.c [new file with mode: 0644]
src/libsystemd-bus/test-bus-kernel.c
src/login/logind-dbus.c
src/login/logind-seat-dbus.c
src/login/logind-session-dbus.c
src/login/logind-user-dbus.c
src/machine/machine-dbus.c
src/machine/machined-dbus.c
src/shared/audit.c
src/shared/util.c
src/systemd/sd-bus.h