Home | History | Annotate | Download | only in pam_securetty

Lines Matching defs:tty

68 	const void *tty;
88 pam_err = pam_get_item(pamh, PAM_TTY, &tty);
92 PAM_LOG("Got TTY: %s", (const char *)tty);
95 if (tty != NULL && strncmp(TTY_PREFIX, tty, sizeof(TTY_PREFIX)) == 0) {
97 tty = (const char *)tty + sizeof(TTY_PREFIX) - 1;
100 if (tty != NULL && (ty = getttynam(tty)) != NULL &&
111 "LOGIN %s REFUSED FROM %s ON TTY %s",
113 (const char *)tty);
116 "LOGIN %s REFUSED ON TTY %s",
117 pwd->pw_name, (const char *)tty);
121 PAM_VERBOSE_ERROR("Not on secure TTY");