Home
last modified time | relevance | path

Searched refs:ttyn (Results 1 – 20 of 20) sorted by relevance

/titanic_44/usr/src/cmd/ttymon/
H A Dtmutmp.c96 char buf[33], ttyn[33]; in checkut_line() local
107 strncpy(ttyn, u->ut_line, sizeof (u->ut_line)); in checkut_line()
108 ttyn[sizeof (u->ut_line)] = '\0'; in checkut_line()
109 if (strcmp(buf, ttyn) == 0) { in checkut_line()
130 char user[33], ttyn[33], rhost[258]; local
142 strncpy(ttyn, up->ut_line, sizeof (up->ut_line));
143 ttyn[sizeof (up->ut_line)] = '\0';
149 (void) pam_set_item(pamh, PAM_TTY, ttyn);
/titanic_44/usr/src/lib/pam_modules/dial_auth/
H A Ddial_auth.c57 char *ttyn, *user; in pam_sm_authenticate() local
79 (retcode = pam_get_item(pamh, PAM_TTY, (void **)&ttyn)) in pam_sm_authenticate()
86 user ? user : "NULL", ttyn ? ttyn : "NULL"); in pam_sm_authenticate()
89 if (ttyn == NULL || *ttyn == '\0') { in pam_sm_authenticate()
108 if (strcmp(line, ttyn) == 0) in pam_sm_authenticate()
/titanic_44/usr/src/lib/pam_modules/timestamp/
H A Dpam_timestamp.c55 char *ttyn; in validate_basic() local
60 (void) pam_get_item(pamh, PAM_TTY, (void **)&ttyn); in validate_basic()
74 if (ttyn == NULL || *ttyn == '\0') { in validate_basic()
82 "user = %s, auser = %s, tty = %s", user, auser, ttyn); in validate_basic()
84 (void) strlcpy(user_tty, ttyn, MAXPATHLEN); in validate_basic()
86 if (strchr(ttyn, '/') == NULL || strncmp(ttyn, "/dev/", 5) == 0) { in validate_basic()
87 ttyn = strrchr(ttyn, '/') + 1; in validate_basic()
90 "invalid tty: %s", ttyn); in validate_basic()
96 auser, ttyn, user); in validate_basic()
/titanic_44/usr/src/cmd/sulogin/
H A Dsulogin.c590 single(const char *cmd, char *ttyn) in single() argument
595 if (ttyn == NULL) in single()
596 ttyn = findttyname(STDIN_FILENO); in single()
602 ttyn = stripttyname(ttyn); in single()
606 if (strcmp(u->ut_line, ttyn) == 0) { in single()
624 (void) strcpy(entryx.ut_line, ttyn); in single()
700 char *ttyn = ttyname(fd); in findttyname() local
702 if (ttyn == NULL) in findttyname()
703 ttyn = "/dev/???"; in findttyname()
709 if (((strcmp(ttyn, "/dev/syscon") == 0) || in findttyname()
[all …]
/titanic_44/usr/src/lib/pam_modules/unix_session/
H A Dunix_session.c90 char *ttyn, *rhost, *user; in pam_sm_open_session() local
111 if ((error = pam_get_item(pamh, PAM_TTY, (void **)&ttyn)) in pam_sm_open_session()
124 if (ttyn == NULL) in pam_sm_open_session()
158 if ((strncmp(ttyn, "/dev/", 5) == 0)) { in pam_sm_open_session()
160 (ttyn + sizeof ("/dev/")-1), in pam_sm_open_session()
163 (void) strlcpy(newll.ll_line, ttyn, in pam_sm_open_session()
/titanic_44/usr/src/cmd/login/
H A Dlogin.c315 static char *ttyn = NULL; variable
451 if (ttyn == NULL) { in main()
452 ttyn = ttyname(0); in main()
453 if (ttyn == NULL) in main()
454 ttyn = "/dev/???"; in main()
466 if ((pam_rc = pam_set_item(pamh, PAM_TTY, ttyn)) != PAM_SUCCESS) { in main()
576 if (di_devperm_login((const char *)ttyn, pwd->pw_uid, pwd->pw_gid, in main()
614 ttyn, HMAX, remote_host); in main()
616 syslog(LOG_NOTICE, "ROOT LOGIN %s", ttyn); in main()
738 (void) strncat(log_entry[trys], ttyn, TTYN_SIZE); in log_bad_attempts()
[all …]
/titanic_44/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dbsd-cray.c111 fsent.ttyn = "sshd"; in cray_login_failure()
174 char *ttyn = NULL; /* ttyname or command name*/ in cray_setup() local
228 ttyn = ttyname(0); in cray_setup()
230 if (ttyn) { in cray_setup()
231 secstatrc = secstat(ttyn, &secinfo); in cray_setup()
242 if ((ttyn == NULL) && ((char *)command != NULL)) in cray_setup()
243 ttyn = (char *)command; in cray_setup()
250 usent.ttyn = ttyn; in cray_setup()
397 fsent.ttyn = ttyn; in cray_setup()
433 fsent.ttyn = ttyn; in cray_setup()
[all …]
/titanic_44/usr/src/cmd/bnu/
H A Dinterface.c183 char *ttyn; in uteardown() local
192 ttyn = ttyname(fdread); in uteardown()
193 if (ttyn != NULL && Dev_mode != 0) in uteardown()
194 chmod(ttyn, Dev_mode); /* can fail, but who cares? */ in uteardown()
236 char *ttyn; local
239 ttyn = ttyname(fdread);
240 if (ttyn != NULL && Dev_mode != 0)
241 chmod(ttyn, Dev_mode); /* can fail, but who cares? */
H A Duucico.c100 char *ttyn; local
466 ttyn = ttyname(Ifn);
467 if (ttyn != CNULL && *ttyn != NULLCHAR) {
473 if ( EQUALSN(ttyn,"/dev/",5) )
474 strcpy(Dc, ttyn+5);
476 strcpy(Dc, ttyn);
477 chmod(ttyn, S_DEVICEMODE);
561 ttyn = ttyname(Ifn);
562 if (ttyn != CNULL && *ttyn != NULLCHAR) {
568 chmod(ttyn, M_DEVICEMODE);
/titanic_44/usr/src/cmd/su/
H A Dsu.c161 char *ttyn; variable
264 if ((ttyn = ttyname(0)) == NULL) in main()
265 if ((ttyn = ttyname(1)) == NULL) in main()
266 if ((ttyn = ttyname(2)) == NULL) in main()
267 ttyn = "/dev/???"; in main()
285 if (pam_set_item(pamh, PAM_TTY, ttyn) != PAM_SUCCESS) in main()
349 pwd.pw_name, username, ttyn); in main()
359 pwd.pw_name, username, ttyn); in main()
379 pwd.pw_name, username, ttyn); in main()
409 pwd.pw_name, username, ttyn); in main()
[all …]
/titanic_44/usr/src/lib/libbsm/common/
H A Dgeneric.c140 char *ttyn; in aug_get_port() local
143 ttyn = ttyname(0); in aug_get_port()
144 if (ttyn == 0 || *ttyn == '\0') { in aug_get_port()
148 rc = stat(ttyn, &sb); in aug_get_port()
/titanic_44/usr/src/lib/libnsl/dial/
H A Dinterface.c133 char *ttyn; in uteardown() local
140 ttyn = ttyname(fdread); in uteardown()
141 if (ttyn != NULL) in uteardown()
143 (void) chmod(ttyn, Dev_mode); in uteardown()
/titanic_44/usr/src/lib/libdevinfo/
H A Ddevinfo_devperm.c160 logindevperm(const char *ttyn, uid_t uid, gid_t gid, void (*errmsg)(char *)) in logindevperm() argument
186 if ((n = resolvepath(ttyn, ttyn_path, PATH_MAX)) == -1) in logindevperm()
574 di_devperm_login(const char *ttyn, uid_t uid, gid_t gid, in di_devperm_login() argument
585 if (ttyn == NULL) { in di_devperm_login()
601 err = setdevaccess((char *)ttyn, uid, tty_gid, in di_devperm_login()
608 return (logindevperm(ttyn, uid, gid, errmsg)); in di_devperm_login()
616 di_devperm_logout(const char *ttyn) in di_devperm_logout() argument
622 if (ttyn == NULL) in di_devperm_logout()
638 return (logindevperm(ttyn, root_uid, root_gid, NULL)); in di_devperm_logout()
/titanic_44/usr/src/uts/i86pc/io/
H A Disa.c778 int cons, ttyn; in isa_intr_ops() local
780 cons = console_hypervisor_dev_type(&ttyn); in isa_intr_ops()
855 if (cons == CONS_TTY && ispec->intrspec_vec == asy_intrs[ttyn]) in isa_intr_ops()
1198 int cons, ttyn; in isa_enumerate() local
1200 cons = console_hypervisor_dev_type(&ttyn); in isa_enumerate()
1242 if (cons == CONS_TTY && ttyn == i) in isa_enumerate()
1295 int cons, ttyn; in enumerate_BIOS_serial() local
1297 cons = console_hypervisor_dev_type(&ttyn); in enumerate_BIOS_serial()
1385 if (cons == CONS_TTY && ttyn == i) { in enumerate_BIOS_serial()
/titanic_44/usr/src/cmd/rexd/
H A Dunix_login.c421 char ttyn[sizeof (ut.ut_line) + 1]; in LogoutUser() local
445 strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in LogoutUser()
446 ttyn[sizeof (up->ut_line)] = '\0'; in LogoutUser()
452 (void) pam_set_item(pamh, PAM_TTY, ttyn); in LogoutUser()
/titanic_44/usr/src/uts/i86pc/boot/
H A Dboot_console.c675 int ttyn; in bcons_init2() local
704 ttyn = n; in bcons_init2()
732 tty_num = ttyn; in bcons_init2()
/titanic_44/usr/src/cmd/saf/
H A Dsac.c467 char ttyn[sizeof (up->ut_line) + 1]; in cleanutx() local
492 strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in cleanutx()
493 ttyn[sizeof (up->ut_line)] = '\0'; in cleanutx()
499 (void) pam_set_item(pamh, PAM_TTY, ttyn); in cleanutx()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rlogind.c1511 char ttyn[sizeof (up->ut_line) + 1]; in rmut() local
1532 (void) strlcpy(ttyn, up->ut_line, in rmut()
1533 sizeof (ttyn)); in rmut()
1545 ttyn); in rmut()
H A Din.telnetd.c4476 char ttyn[sizeof (up->ut_line) + 1]; in rmut() local
4501 (void) strlcpy(ttyn, up->ut_line, in rmut()
4502 sizeof (ttyn)); in rmut()
4508 ttyn); in rmut()
/titanic_44/usr/src/cmd/init/
H A Dinit.c2618 char ttyn[sizeof (up->ut_line) + 1]; in notify_pam_dead() local
2625 (void) snprintf(ttyn, sizeof (ttyn), "%s", up->ut_line); in notify_pam_dead()
2629 (void) pam_set_item(pamh, PAM_TTY, ttyn); in notify_pam_dead()