Bugzilla – Bug 186189
create a PAM policy for pam_keyring
Last modified: 2007-09-18 17:29:26 UTC
There is a new package - pam_keyring. Wee need to decide, how to integrate required PAM configuration change to /etc/pam.d: * Using %post, %postun, %triggerin in the package. * Using YaST * Add it to the default of gdm (probably not possible for gdm-autologin). * Add it to the default of all DM PAM configs. * Create new common-xsession module and include it, where appropriate. All solutions have a problem, how to provide not starting in KDE sessions. Reference: Feature 300590
Lines to be added: auth optional pam_keyring.so try_first_pass session optional pam_keyring.so But we should do this, only if GNOME session is selected (or improve pam_keyring.so to ask only for GNOME session).
We actually have separate pam configs for gdm and gnome-screensaver now, wouldn't this make it gnome specific?
There is a different problem: It would be ideal to start GNOME keyring daemon in GNOME session, nod depending on display manager and not start it in other session types, wven if we are using gdm. I don't know, where there is a simple way to implement it. pam_keyring is not intended for screensaver (maybe only if GNOME keyring will implement timed/idle key forgetting).
In 10.2, pam_keyring is not in the default installation. As a temporary solution, I am adding scriptlets, which add required lines to /etc/pam.d/gdm. It works well, but only in gdm and starts gnome-keyring for all session types.
*** Bug 215595 has been marked as a duplicate of this bug. ***
Launch policy problems topic presented in GNOME desktop-devel-list: http://mail.gnome.org/archives/desktop-devel-list/2006-November/msg00146.html
*** Bug 174720 has been marked as a duplicate of this bug. ***
*** Bug 168559 has been marked as a duplicate of this bug. ***
Time to resurrect this issue upstream with the inclusion of a pam module in gnome-keyring proper.
Maybe writing of desktop neutral backend would be a clean solution - both kwallet and gnome-keyring might use it and session would unlock this one.
That could be longer term, but right now we could use DESKTOP_SESSION or something similar to detect a gnome session or not. This is a major usability issue, so I think really trying to have this in 10.3 is important.
Ping...
I checked in a patch to gnome-keyring that should avoid auto starting the daemon in KDE.