Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 198630 - Make login processes initialise session keyring
Make login processes initialise session keyring
Product: Fedora
Classification: Fedora
Component: kdebase (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Ngo Than
Ben Levenson
Depends On:
Blocks: 198623
  Show dependency treegraph
Reported: 2006-07-12 09:22 EDT by David Howells
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-07-13 13:28:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Add keyinit instruction to PAM script (3.41 KB, patch)
2006-07-13 09:25 EDT, David Howells
no flags Details | Diff

  None (edit)
Description David Howells 2006-07-12 09:22:54 EDT
+++ This bug was initially created as a clone of Bug #198623 +++

This package contains the "kdm" program for which the PAM script needs to be 

The PAM scripts for the login programs need to be altered to forcibly create a 
new session keyring when a login event occurs.

These simply require the following line adding to their PAM scripts:

	session	    optional    pam_keyinit.so    force revoke

This forces them to create a new session keyring during login, replacing the
one inherited from their parent, and causes the session keyring so created to
be revoked when the login process exits.

Ideally, this should be "required" not "optional", but it still has to work if 
the pam_keyinit.so library is absent.

The authlogin program needs modifying to add:

	session	    optional    pam_keyinit.so    revoke

To the default session (system-auth).  This just creates a new session keyring 
if one doesn't yet exist for this process.

The "su" program needs to split its "su - [user]" mode PAM script from its "su 
[user]" PAM script, so that the former can forcibly create a keyring whilst 
the latter doesn't.
Comment 1 David Howells 2006-07-13 09:25:16 EDT
Created attachment 132370 [details]
Add keyinit instruction to PAM script

This patch modifies the devel/ directory contents to make the kdm PAM scripts
separate to those of kscreensaver and kcheckpass, and makes the kdm PAM scripts
force a new session keyring.
Comment 3 Ngo Than 2006-07-13 13:28:08 EDT
It's now fixed in kdebase-3_5_3-12.

David, thanks for the patch!

Note You need to log in before you can comment on or make changes to this bug.