diff options
-rw-r--r-- | src/login/pam-module.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/login/pam-module.c b/src/login/pam-module.c index 7400734fdc..18dd4e2e21 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"; |