[systemd-devel] [PATCH] pam_systemd: Ignore vtnr when seat != seat0
Matthew Monaco
matt at 0x01b.net
Fri Jan 24 10:23:01 PST 2014
From: Matthew Monaco <matthew.monaco at 0x01b.net>
logind considers it an error for a seat other than seat0 to have a
non-zero vtnr for CreateSession
---
This is what I've been using for the past 3 weeks.
src/login/pam-module.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/login/pam-module.c b/src/login/pam-module.c
index 7400734..18dd4e2 100644
--- 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";
--
1.8.5.3
More information about the systemd-devel
mailing list