chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62cfb98
)
pam_systemd: Ignore vtnr when seat != seat0
author
Matthew Monaco
<matthew.monaco@0x01b.net>
Fri, 24 Jan 2014 18:23:01 +0000
(11:23 -0700)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 26 Jan 2014 17:25:21 +0000
(12:25 -0500)
logind considers it an error for a seat other than seat0 to have a
non-zero vtnr for CreateSession
src/login/pam-module.c
patch
|
blob
|
history
diff --git
a/src/login/pam-module.c
b/src/login/pam-module.c
index 7400734fdc975f0c83eeb3dbc240c87cb66f7166..18dd4e2e2136482e3a73f1356502ecef269d4bac 100644
(file)
--- a/
src/login/pam-module.c
+++ b/
src/login/pam-module.c
@@
-321,6
+321,12
@@
_public_ PAM_EXTERN int pam_sm_open_session(
get_seat_from_display(display, NULL, &vtnr);
}
+ if (seat && !streq(seat, "seat0")) {
+ pam_syslog(handle, LOG_DEBUG,
+ "Ignoring vtnr %d for %s which is not seat0", vtnr, seat);
+ vtnr = 0;
+ }
+
if (!type)
type = !isempty(display) ? "x11" :
!isempty(tty) ? "tty" : "unspecified";