Bug 689757

Summary: xdm doesn't start ConsoleKit session correctly
Product: [Fedora] Fedora Reporter: Adam Tkac <atkac>
Component: xorg-x11-xdmAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: mcepl, ovasik, pertusus, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-23 08:01:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Tkac 2011-03-22 11:40:21 UTC
Description of problem:
Since ConsoleKit 0.4.3 xdm doesn't start CK session correctly.

Currently, session is started via xorg-x11-xinit machinery, in /etc/X11/xinit/xinitrc-common script. However started CK session is broken:

$ ck-list-sessions 
Session2:
        unix-user = '500'
        realname = '(null)'
        seat = 'Seat3'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty8'
        display-device = ''
        remote-host-name = ''
        is-local = FALSE
        on-since = '2011-03-22T11:33:28.960509Z'
        login-session-id = '6'

Note the "FALSE" keywords on active and is-local fields.

Version-Release number of selected component (if applicable):
$ rpm -q xorg-x11-xdm
xorg-x11-xdm-1.1.6-22.fc15.x86_64

How reproducible:
always

Steps to Reproduce:
1. use xdm
2. start X session
  
Actual results:
Session isn't local and active and NetworkManager is not able to connect to wireless network.

Additional info:
I dug around this issue on google and this change in ConsoleKit is intentional.

Possible solution, which fixes this issue in my case is:
1. Don't call ck-xinit-session in /etc/X11/xinit/xinitrc{,-common}
2. Put following line to /etc/pam.d/xdm (I put it after pam_console.so):
  session    required    pam_ck_connector.so

After this change NetworkManager is able to set wifi connection again.

Let me know if you need more info or if I should push my fix and release an update.

Comment 1 Matěj Cepl 2011-03-23 08:01:17 UTC

*** This bug has been marked as a duplicate of bug 237621 ***