Bug 450962

Summary: ConsoleKit removes it's pam config on update
Product: [openSUSE] openSUSE 11.1 Reporter: Ludwig Nussel <lnussel>
Component: Update ProblemsAssignee: Holger Macht <hmacht>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P3 - Medium    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: maint:released:11.1:24614
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ludwig Nussel 2008-12-02 16:37:06 UTC
ConsoleKit unconditionally removes itself from the pam config in %postun. That means if the package gets updated console logins are no longer recognized by ConsoleKit.

Note that this will also hit fresh installs if we ever need to release a security/maintenance update for ConsoleKit.
Comment 1 Holger Macht 2008-12-07 18:43:25 UTC
But isn't that a pam issue? ConsoleKit would be readded to the pam config on update, no? Otherwise, how to solve, just remove the "pam-config .... -d"?
Comment 2 Ludwig Nussel 2008-12-08 08:05:22 UTC
The %postun script of the old package runs last so on update pam-config -d is always called last. Common pitfall but apparently not documented in our wiki *sigh*.

Something like this should work:

%postun
if [ "$1" = 0 ]; then
  pam-config -d ...
fi
Comment 3 Holger Macht 2008-12-08 12:22:55 UTC
Submit request created: osc sr -d show 4233
Comment 4 Ludwig Nussel 2009-03-23 08:10:24 UTC
the 11.1 consolekit dbus update was released without this fix
Comment 5 Holger Macht 2009-04-06 14:46:15 UTC
Will be fixed along with bug 491063
Comment 6 Swamp Workflow Management 2009-05-08 13:47:15 UTC
The SWAMPID for this issue is 24545.
Please submit the patch and patchinfo file using this ID.
(https://swamp.suse.de/webswamp/wf/24545)
Comment 7 Holger Macht 2009-06-23 13:24:07 UTC
Package submitted to Update:Test quite some time ago, reclosing this bug.
Comment 8 Swamp Workflow Management 2009-07-08 14:27:38 UTC
Update released for: ConsoleKit, ConsoleKit-debuginfo, ConsoleKit-debugsource, ConsoleKit-devel, ConsoleKit-x11
Products:
openSUSE 11.1 (debug, i586, ppc, ppc64, x86_64)