Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15
sddm
0001-Fix-authentication-when-reusing-an-existin...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-authentication-when-reusing-an-existing-session.patch of Package sddm
From 19f31cd14b343b203fc367af07645f8a73341136 Mon Sep 17 00:00:00 2001 From: Fabian Vogt <fabian@ritter-vogt.de> Date: Wed, 11 Jul 2018 19:45:40 +0200 Subject: [PATCH] Fix authentication when reusing an existing session - Check the success value before unlocking the session - Don't attempt to use the nonexistant "sddm-check" PAM service --- src/daemon/Display.cpp | 4 +++- src/helper/backend/PamBackend.cpp | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/daemon/Display.cpp b/src/daemon/Display.cpp index 5abfc9a..57d7ecb 100644 --- a/src/daemon/Display.cpp +++ b/src/daemon/Display.cpp @@ -339,7 +339,9 @@ namespace SDDM { } else { //we only want to unlock the session if we can lock in, so we want to go via PAM auth, but not start a new session //by not setting the session and the helper will emit authentication and then quit - connect(m_auth, &Auth::authentication, this, [=](){ + connect(m_auth, &Auth::authentication, this, [=](const QString &, bool success){ + if(!success) + return; qDebug() << "activating existing seat"; OrgFreedesktopLogin1ManagerInterface manager(Logind::serviceName(), Logind::managerPath(), QDBusConnection::systemBus()); manager.UnlockSession(existingSessionId); diff --git a/src/helper/backend/PamBackend.cpp b/src/helper/backend/PamBackend.cpp index 69cbd2c..5467282 100644 --- a/src/helper/backend/PamBackend.cpp +++ b/src/helper/backend/PamBackend.cpp @@ -219,8 +219,6 @@ namespace SDDM { if (user == QStringLiteral("sddm") && m_greeter) service = QStringLiteral("sddm-greeter"); - else if (m_app->session()->path().isEmpty()) - service = QStringLiteral("sddm-check"); else if (m_autologin) service = QStringLiteral("sddm-autologin"); result = m_pam->start(service, user); -- 2.18.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor