mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-27 13:57:26 +03:00
logind: never consider a closing session relevant for PK checks
https://bugzilla.redhat.com/show_bug.cgi?id=1010215
This commit is contained in:
parent
90dc8c2ea2
commit
c68ba912c3
@ -957,6 +957,7 @@ static int have_multiple_sessions(
|
||||
* count, and non-login sessions do not count either. */
|
||||
HASHMAP_FOREACH(session, m->sessions, i)
|
||||
if (session->class == SESSION_USER &&
|
||||
!session->closing &&
|
||||
session->user->uid != uid)
|
||||
return true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user