Bug 1176442

Summary: systemd-logind: failed to get session
Product: [Fedora] Fedora Reporter: Henrique Martins <fedora>
Component: xorg-x11-xdmAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 21CC: hdegoede, 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: 2015-01-06 12:02:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Henrique Martins 2014-12-21 21:15:53 UTC
Description of problem:
Not sure if this a systemd, xdm or pam (pam_ssh) configuration problem, but on all my machines I have a line like this in /var/log/Xorg.0.log:
  (EE) systemd-logind: failed to get session: PID 6246 does not belong to any known session
where PID XXXX is always Xorg.bin, a child of xdm.

Version-Release number of selected component (if applicable):
xorg-x11-xdm-1.1.11-8.fc21.x86_64
pam-1.1.8-16.fc21.x86_64
systemd-216-12.fc21.x86_64
pam_ssh-1.98-4.fc21.x86_64

How reproducible:
Happens in all my F21 systems

Steps to Reproduce:
1. Configure system to use xdm
2. Configure pam (system_auth) to use pam_ssh for auth/session
3. login

Actual results:
Above line on Xorg.0.log

Expected results:
This is a new (EE) error line that wasn't there last time I look in that file under F20.

Additional info:

Comment 1 Hans de Goede 2015-01-06 12:02:29 UTC
Hi,

Starting with F-21 Xorg can talk to systemd-logind to get filedescriptors for the gpu and input devices from systemd-logind. Also see:

https://fedoraproject.org/wiki/Changes/XorgWithoutRootRights

systemd-logind will refuse any requests to do so unless Xorg is started from a properly registered login session. Currently all display managers such as gdm, xdm, etc. do not set up a proper login session in which to start X, leading to this error. This error can be safely ignored, as Xorg is still capable of opening the devices itself.

In the future (when most display managers have been fixed), we plan to start running Xorg as a regular user, rather then as root.

At this point in time there are no plans to fix xdm to start Xorg in a proper session, since xdm is not used by many people. When the switch is made to start running Xorg as regular user, you can still continue to use xdm by changing the Xwrapper.config to keep running Xorg as root.

Regards,

Hans