Skip to content

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

Open
sunweaver wants to merge 1 commit intomate-desktop:masterfrom
sunweaver:pr/lock-screen-before-switch-user-request
Open

Enforce screen locking before requesting switch to a different user.#114
sunweaver wants to merge 1 commit intomate-desktop:masterfrom
sunweaver:pr/lock-screen-before-switch-user-request

Conversation

@sunweaver
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@raveit65
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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