Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce screen locking before requesting switch to a different user. #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sunweaver
Copy link
Member

One of my customers noticed that there is a security issue with user switching via the logout dialog.

The session does not get locked when user switching is requested via the logout dialog. However, this should be enforced.

I am not sure if the proposed patch is a generic way of requesting a screen lock. However, the approach works well on mate-session-manager as found in Debian jessie.

@sunweaver sunweaver changed the title Enforce screen locking before requesting to switch to a different user. Enforce screen locking before requesting switch to a different user. Dec 9, 2015
@clefebvre
Copy link
Contributor

There are other ways to switch users, some of them not being shipped by MATE, so it's usually the responsibility of the DM to lock the session. Either by asking the session to lock itself, or by locking screensavers directly.

See here for instance:

https://github.com/linuxmint/mdm/blob/master/gui/mdmflexiserver.c#L206

If your DM does not lock your session, make sure to report it as a bug on the DM as well.

Now, with that said, it should be quite harmless to accept this PR. It shouldn't create issues with MDM and it should help a little with DMs which don't support mate-screensaver (at least in the cases where the user switches users via mate-screensaver).

@clefebvre
Copy link
Contributor

Btw, it might be better to make the call in manager_switch_user() directly.

@raveit65
Copy link
Member

raveit65 commented Dec 9, 2015

Well, mdm is only use by linuxmint.
In fedora with lightdm i can always switch between 2 user accounts wit alt-f1/f2 until the screensaver lock gets in.
Fedora use always another ttyl for a second/third.....user.
This might be different to debian systems.
This is really a long outstanding issue and it is already reported somewhere here at github.

@joakim-tjernlund
Copy link
Contributor

Could this be enforced when issuing a suspend as well?
Now suspend does not so one have to wake up the suspend twice unless I lock screen manually
first.

@joakim-tjernlund
Copy link
Contributor

Forget the suspend issue, that was due to something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants