[gdm] manager: be more accepting of callers with uids different from their session
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] manager: be more accepting of callers with uids different from their session
- Date: Thu, 10 Apr 2014 17:24:48 +0000 (UTC)
commit 243ede3395e2745254dcef913e0b4bc97af37be5
Author: Ray Strode <rstrode redhat com>
Date: Thu Apr 10 09:27:59 2014 -0400
manager: be more accepting of callers with uids different from their session
If a user runs su in their session, that switched user will now be
running in a session that doesn't belong to it. GDM won't allow a user
access to the worker process associated with the session in this case.
Instead, it will try to create a temporary just-in-time reauthentication
channel so reauthentication can happen without having the user talking to
another user's worker. Unfortunately, a logic error in the code means,
the user won't access to its own just-in-time channel.
This commit fixes that.
https://bugzilla.gnome.org/show_bug.cgi?id=727982
daemon/gdm-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 9723932..09853d6 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -814,7 +814,7 @@ get_display_and_details_for_bus_sender (GdmManager *self,
}
if (out_uid != NULL) {
- *out_uid = session_uid;
+ *out_uid = caller_uid;
}
if (caller_uid != session_uid) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]