diff -Naurp Linux-PAM-0.99.8.1/modules/pam_namespace/pam_namespace.c Linux-PAM-0.99.8.1.oden/modules/pam_namespace/pam_namespace.c --- Linux-PAM-0.99.8.1/modules/pam_namespace/pam_namespace.c 2010-11-02 07:13:08.000000000 -0400 +++ Linux-PAM-0.99.8.1.oden/modules/pam_namespace/pam_namespace.c 2010-11-02 07:18:34.000000000 -0400 @@ -779,6 +779,7 @@ static int inst_init(const struct polydi } else { pid = fork(); if (pid == 0) { + static char *envp[] = { NULL }; #ifdef WITH_SELINUX if (idata->flags & PAMNS_SELINUX_ENABLED) { if (setexeccon(NULL) < 0) @@ -786,7 +787,7 @@ static int inst_init(const struct polydi } #endif if (execl(NAMESPACE_INIT_SCRIPT, NAMESPACE_INIT_SCRIPT, - polyptr->dir, ipath, newdir?"1":"0", idata->user, (char *)NULL) < 0) + polyptr->dir, ipath, newdir?"1":"0", idata->user, NULL, envp) < 0) exit(1); } else if (pid > 0) { while (((rc = waitpid(pid, &status, 0)) == (pid_t)-1) &&