]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-dbus.c
logind: fix check for multiple sessions
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 12 Jun 2012 07:31:43 +0000 (09:31 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Tue, 12 Jun 2012 08:36:33 +0000 (10:36 +0200)
commit2154761fbbc931e3e3d83100fa42609c99cd2536
tree8c43238bae6a3b7bf62cf743d73d34ad50a1f7dc
parent4f5d327a49e1a40ae0a3b8f1855dc90f3c0d953f
logind: fix check for multiple sessions

The "$action-multiple-sessions" polkit actions are defined as
"$action while other users are logged in". To me this implies that the
following sessions should not count:
 - greeter sessions
 - user sessions belonging to the same user as the one who's asking

Not sure how to treat class SESSION_LOCK_SCREEN. I never have these.
I just ignore every class that's not SESSION_USER.

https://bugzilla.redhat.com/show_bug.cgi?id=814424
src/login/logind-dbus.c