naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
a4b143
From 48797bdc98bb45dbd1aa7150bac5eff0acd31d58 Mon Sep 17 00:00:00 2001
a4b143
From: Lennart Poettering <lennart@poettering.net>
a4b143
Date: Thu, 26 Sep 2013 21:32:47 +0200
a4b143
Subject: [PATCH] logind: never consider a closing session relevant for PK
a4b143
 checks
a4b143
a4b143
https://bugzilla.redhat.com/show_bug.cgi?id=1010215
a4b143
---
a4b143
 src/login/logind-dbus.c | 1 +
a4b143
 1 file changed, 1 insertion(+)
a4b143
a4b143
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
a4b143
index 77dda10..9f4c120 100644
a4b143
--- a/src/login/logind-dbus.c
a4b143
+++ b/src/login/logind-dbus.c
a4b143
@@ -957,6 +957,7 @@ static int have_multiple_sessions(
a4b143
          * count, and non-login sessions do not count either. */
a4b143
         HASHMAP_FOREACH(session, m->sessions, i)
a4b143
                 if (session->class == SESSION_USER &&
a4b143
+                    !session->closing &&
a4b143
                     session->user->uid != uid)
a4b143
                         return true;
a4b143