Bug 1176442 - systemd-logind: failed to get session
Summary: systemd-logind: failed to get session
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-xdm
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-21 21:15 UTC by Henrique Martins
Modified: 2015-01-06 12:02 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-01-06 12:02:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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