Description of problem:
Killing inactive session with
causes active user to fail.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1) RHEL system with installed GNOME desktop (default installation, no special settings)
2) please ensure, that you have two users - lets say tom und ben
3) log in in the desktop environment as user tom
4) switch desktop user to the user ben (the session of the user tom becomes inactive and runs further in the background)
5) please list the desktop sessions now with the following command:
6) please kill now the inactive desktop session of the user tom (the active desktop user is ben, the session of the user tom runs in the background)
loginctl kill-session 2 (where 2 is the id of the now inactive session of the user tom)
Active session gets stopped
Active session remain unaffected
On side note: I have noticed ssh session as well failing, but not everytime
I did a scratch build here:
Task info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=21537234
with the above patch added. didn't even need any backporting.
confirmed it fixes the problem.
mboisvert, can we get a qa ack?
so this is actually going to need a GDM side fix too.
the problem is that GDM will start a new login scree when it detects the user session exiting, even if the user session exits in the background.
We need to add some code to handle the background death case.
When testing this before, I must have mixed up which session number I was killing, and killed a non-graphical session in the background (or something)
Verified on: xorg-x11-server-1.20.4-6.el7 and gdm-3.28.2-16.el7. With two sessions, I was able to kill the "inactive" session without any interruption.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.