logind: open up most bus calls for unpriviliged processes, using PolicyKit

System Internals / systemd - Lennart Poettering [poettering.net] - 18 February 2015 05:55 UTC

Also, allow clients to alter their own objects without any further priviliges. i.e. this allows clients to kill and lock their own sessions without involving PK.

c529695 logind: open up most bus calls for unpriviliged processes, using PolicyKit
src/core/dbus.c | 8 +-
src/hostname/hostnamed.c | 30 +++++--
src/import/importd.c | 4 +
src/libsystemd/sd-bus/bus-util.c | 31 +++++++
src/libsystemd/sd-bus/bus-util.h | 4 +-
src/locale/localed.c | 27 +++++-
src/login/loginctl.c | 16 ++--
src/login/logind-dbus.c | 134 ++++++++++++----------------
src/login/logind-seat-dbus.c | 17 +++-
src/login/logind-seat.h | 2 +
src/login/logind-session-dbus.c | 59 +++++++++---
src/login/logind-session.h | 5 ++
src/login/logind-user-dbus.c | 34 ++++++-
src/login/logind-user.h | 3 +
src/login/org.freedesktop.login1.policy.in | 20 +++++
src/machine/image-dbus.c | 4 +
src/machine/machine-dbus.c | 5 ++
src/timedate/timedated.c | 36 +++++++-
18 files changed, 318 insertions(+), 121 deletions(-)

Upstream: github.com


  • Share