Lines Matching refs:tty
128 login_ttyok(login_cap_t *lc, const char *tty, const char *allowcap,
133 if (lc != NULL && tty != NULL && *tty != '\0') {
138 te = getttynam(tty); /* Need group name */
142 if (ttl != NULL && !login_str2inlist(ttl, tty, grp, 0))
143 rc = 0; /* tty or ttygroup not in allow list */
147 if (ttl != NULL && login_str2inlist(ttl, tty, grp, 0))
148 rc = 0; /* tty or ttygroup in deny list */
158 * Determine whether or not login on a tty is accessible for
163 auth_ttyok(login_cap_t *lc, const char * tty)
165 return login_ttyok(lc, tty, "ttys.allow", "ttys.deny");