diff -p -up Linux-PAM-0.99.8.1/modules/pam_unix/passverify.c.noselinux Linux-PAM-0.99.8.1/modules/pam_unix/passverify.c --- Linux-PAM-0.99.8.1/modules/pam_unix/passverify.c.noselinux 2008-01-18 16:51:57.000000000 +0000 +++ Linux-PAM-0.99.8.1/modules/pam_unix/passverify.c 2008-01-18 16:55:24.000000000 +0000 @@ -527,7 +527,9 @@ save_old_password(const char *forwho, co int found = 0; struct passwd *pwd = NULL; struct stat st; +#ifdef WITH_SELINUX security_context_t prev_context=NULL; +#endif if (howmany < 0) { return PAM_SUCCESS; @@ -684,7 +686,9 @@ unix_update_passwd(pam_handle_t *pamh, c FILE *pwfile, *opwfile; int err = 1; int oldmask; +#ifdef WITH_SELINUX security_context_t prev_context=NULL; +#endif oldmask = umask(077); #ifdef WITH_SELINUX @@ -809,7 +813,9 @@ unix_update_shadow(pam_handle_t *pamh, c FILE *pwfile, *opwfile; int err = 1; int oldmask; +#ifdef WITH_SELINUX security_context_t prev_context=NULL; +#endif spwdent = getspnam(forwho); if (spwdent == NULL) {