From ef8c495bc4a56f636517994e40eb4b30cbeb6873 Mon Sep 17 00:00:00 2001 From: Tomáš Mráz Date: Nov 02 2009 12:17:27 +0000 Subject: - pam_mkhomedir: fix umask parameter of the module (#499816) --- diff --git a/pam-1.0.91-mkhomedir-umask.patch b/pam-1.0.91-mkhomedir-umask.patch new file mode 100644 index 0000000..c1ef33a --- /dev/null +++ b/pam-1.0.91-mkhomedir-umask.patch @@ -0,0 +1,12 @@ +diff -up Linux-PAM-1.0.91/modules/pam_mkhomedir/pam_mkhomedir.c.umask Linux-PAM-1.0.91/modules/pam_mkhomedir/pam_mkhomedir.c +--- Linux-PAM-1.0.91/modules/pam_mkhomedir/pam_mkhomedir.c.umask 2009-11-02 13:14:54.000000000 +0100 ++++ Linux-PAM-1.0.91/modules/pam_mkhomedir/pam_mkhomedir.c 2009-11-02 13:14:35.000000000 +0100 +@@ -84,7 +84,7 @@ _pam_parse (const pam_handle_t *pamh, in + } else if (!strcmp(*argv, "debug")) { + ctrl |= MKHOMEDIR_DEBUG; + } else if (!strncmp(*argv,"umask=",6)) { +- strncpy(SkelDir,*argv+6,sizeof(UMask)); ++ strncpy(UMask,*argv+6,sizeof(UMask)); + UMask[sizeof(UMask)-1] = '\0'; + } else if (!strncmp(*argv,"skel=",5)) { + strncpy(SkelDir,*argv+5,sizeof(SkelDir)); diff --git a/pam.spec b/pam.spec index c3f029f..4003278 100644 --- a/pam.spec +++ b/pam.spec @@ -3,7 +3,7 @@ Summary: An extensible library which provides authentication for applications Name: pam Version: 1.0.91 -Release: 7%{?dist} +Release: 8%{?dist} # The library is BSD licensed with option to relicense as GPLv2+ - this option is redundant # as the BSD license allows that anyway. pam_timestamp and pam_console modules are GPLv2+, License: BSD and GPLv2+ @@ -25,6 +25,7 @@ Patch1: pam-1.0.90-redhat-modules.patch Patch2: pam-1.0.91-std-noclose.patch Patch6: pam-1.1.0-xauth-context.patch Patch7: pam-1.1.0-console-fixes.patch +Patch8: pam-1.0.91-mkhomedir-umask.patch %define _sbindir /sbin %define _moduledir /%{_lib}/security @@ -328,6 +329,9 @@ fi %doc doc/adg/*.txt doc/adg/html %changelog +* Mon Nov 2 2009 Tomas Mraz 1.0.91-8 +- pam_mkhomedir: fix umask parameter of the module (#499816) + * Mon Nov 2 2009 Tomas Mraz 1.0.91-7 - pam_console: fix memory corruption when executing handlers (patch by Stas Sergeev) and a few more fixes in the handler execution code (#532302)