chiark / gitweb /
logind: when a bus call is done on a session, user or seat, optionally determine...
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Jan 2015 15:14:19 +0000 (16:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Jan 2015 17:35:36 +0000 (18:35 +0100)
commit309a29dfd24f4175de334ca1593e3fe2436ab082
treead38b8a702fcde2b5a82d07ecf130e3ffd952268
parent3909ba34ec9b2c63d9938b6ba37af54a214fcff3
logind: when a bus call is done on a session, user or seat, optionally determine them from the caller credentials

More specifically, if an operation is requested on a session with an
empty name, the caller's session is used. If an operation is requested
on a seat with an empty name, the seat of the caller's session is used.
Finally, if an operation on the user with UID -1 is requested, the user
of the client's session is used (and not the UID of the client!).
src/login/logind-dbus.c
src/login/logind-seat-dbus.c
src/login/logind-session-dbus.c
src/login/logind-user-dbus.c
src/login/logind.h