]> andersk Git - gssapi-openssh.git/commitdiff
if PermitPAMUserChange, don't put username from temporary PAM passwd OPENSSH_GSI_GPT_BASE
authorbasney <basney>
Fri, 4 Sep 2009 15:33:11 +0000 (15:33 +0000)
committerbasney <basney>
Fri, 4 Sep 2009 15:33:11 +0000 (15:33 +0000)
struct in the process title, because it may change

openssh/monitor.c

index e0434d5bcf506f732da2fb2212953acdd1a8464d..3a39cef4a10944243fa6508752a0abaa87775d08 100644 (file)
@@ -680,6 +680,11 @@ mm_answer_pwnamallow(int sock, Buffer *m)
 
        if (authctxt->user) xfree(authctxt->user);
        authctxt->user = xstrdup(username);
+#ifdef USE_PAM
+    if (options.permit_pam_user_change)
+        setproctitle("%s [priv]", pwent ? "[pam]" : "unknown");
+    else
+#endif
        setproctitle("%s [priv]", pwent ? username : "unknown");
        xfree(username);
 
This page took 0.068873 seconds and 5 git commands to generate.