Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 25667ea3beb7fd9832975c8d5ecb1b60 > files > 11

sddm-0.14.0-13.2.mga6.src.rpm

From 6d60de8e70955bae8ec8ec74789bfce9e5528386 Mon Sep 17 00:00:00 2001
From: Albert Vaca <albertvaka@gmail.com>
Date: Mon, 3 Oct 2016 07:26:11 +0200
Subject: [PATCH 11/21] Unlock Gnome keyring on login (#711)

Gnome's keyring stores user keys (eg: wifi passwords) encrypted, and uses
a pam module to unlock them at login.

This patch adds `optional` support for the gnome_keyring pam module, so
Gnome can be launched successfully from SDDM. Without this, Gnome will
ask for the users password again after logging in, the first time it needs
to access the keyring, in order to unlock it.

Other display managers as the Gnome Display Manger [1], LightDM [2] and
Enlightment's Entrance [3] already do this.

[1] https://github.com/GNOME/gdm/blob/master/data/pam-arch/gdm-password.pam
[2] http://bazaar.launchpad.net/~lightdm-team/lightdm/trunk/view/head:/debian/lightdm.pam
[3] https://git.enlightenment.org/misc/entrance.git/tree/data/entrance

[ChangeLog][Pam] Unlock GNOME keyring on login
---
 services/sddm.pam | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/services/sddm.pam b/services/sddm.pam
index bda5d80..efb1776 100755
--- a/services/sddm.pam
+++ b/services/sddm.pam
@@ -1,6 +1,13 @@
 #%PAM-1.0
 
 auth		include		system-login
+auth		optional	pam_gnome_keyring.so
+
 account		include		system-login
+
 password	include		system-login
+password	optional	pam_gnome_keyring.so use_authtok
+
+session		optional	pam_keyinit.so force revoke
 session		include		system-login
+session		optional	pam_gnome_keyring.so auto_start
-- 
2.10.2