Lines Matching refs:authctxt
182 extern void aps_monitor_loop(Authctxt *authctxt, pid_t child_pid);
189 static pid_t altprivsep_start_monitor(Authctxt **authctxt);
190 static void altprivsep_do_monitor(Authctxt *authctxt, pid_t child_pid);
229 altprivsep_start_monitor(Authctxt **authctxt) in altprivsep_start_monitor() argument
274 xxx_authctxt = *authctxt = aps_read_auth_context(); in altprivsep_start_monitor()
401 altprivsep_do_monitor(Authctxt *authctxt, pid_t child_pid) in altprivsep_do_monitor() argument
403 aps_monitor_loop(authctxt, child_pid); in altprivsep_do_monitor()
574 altprivsep_send_auth_context(Authctxt *authctxt) in altprivsep_send_auth_context() argument
579 altprivsep_packet_put_int(authctxt->pw->pw_uid); in altprivsep_send_auth_context()
580 altprivsep_packet_put_int(authctxt->pw->pw_gid); in altprivsep_send_auth_context()
581 altprivsep_packet_put_cstring(authctxt->pw->pw_name); in altprivsep_send_auth_context()
769 Authctxt *authctxt; in aps_read_auth_context() local
782 authctxt = xcalloc(1, sizeof(Authctxt)); in aps_read_auth_context()
783 authctxt->pw = xcalloc(1, sizeof(struct passwd)); in aps_read_auth_context()
786 authctxt->pw->pw_uid = packet_get_int(); in aps_read_auth_context()
787 authctxt->pw->pw_gid = packet_get_int(); in aps_read_auth_context()
788 authctxt->pw->pw_name = packet_get_string(NULL); in aps_read_auth_context()
789 authctxt->user = xstrdup(authctxt->pw->pw_name); in aps_read_auth_context()
790 debug3("uid/gid/username %d/%d/%s", authctxt->pw->pw_uid, in aps_read_auth_context()
791 authctxt->pw->pw_gid, authctxt->user); in aps_read_auth_context()
809 return (authctxt); in aps_read_auth_context()
1059 Authctxt *authctxt; in altprivsep_start_and_do_monitor() local
1073 if ((aps_child = altprivsep_start_monitor(&authctxt)) == -1) in altprivsep_start_and_do_monitor()
1116 record_login(getpid(), NULL, "sshd", authctxt->user); in altprivsep_start_and_do_monitor()
1122 if (initgroups(authctxt->pw->pw_name, in altprivsep_start_and_do_monitor()
1123 authctxt->pw->pw_gid) < 0) { in altprivsep_start_and_do_monitor()
1149 altprivsep_do_monitor(authctxt, aps_child); in altprivsep_start_and_do_monitor()
1157 record_logout(getpid(), NULL, "sshd", authctxt->user); in altprivsep_start_and_do_monitor()