]> granicus.if.org Git - cronie/commitdiff
'Build enviroment' is set in pam section for better security.
authormmaslano <mmaslano@redhat.com>
Fri, 17 Aug 2007 13:12:45 +0000 (15:12 +0200)
committermmaslano <mmaslano@redhat.com>
Fri, 24 Aug 2007 13:06:00 +0000 (15:06 +0200)
do_command.c

index 5abce8ac74eddb6f0854fb915cbe56159eb6b5cf..e49c11403593fee114852fe58c976e4d23283f69 100644 (file)
@@ -188,6 +188,7 @@ child_process(entry *e, user *u) {
        PAM_FAIL_CHECK;
        retcode = pam_setcred(pamh, PAM_ESTABLISH_CRED | PAM_SILENT);
        PAM_FAIL_CHECK;
+       build_env(e->envp);
        log_close(); /* PAM has now re-opened our log to auth.info ! */
 #endif