diff options
author | jlam <jlam@pkgsrc.org> | 2002-12-23 21:23:56 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-12-23 21:23:56 +0000 |
commit | 3530f6ba5cc9bfe1309ae0ff7e6a7ccb1d47679a (patch) | |
tree | b8eaf075508d7f5961ef5d63906886e321213f40 /security/PAM/patches/patch-al | |
parent | 9b27e038933b17950b35d1b259b044d1de117b66 (diff) | |
download | pkgsrc-3530f6ba5cc9bfe1309ae0ff7e6a7ccb1d47679a.tar.gz |
Update security/PAM to 0.77. Changes from version 0.75 include:
* Numerous bug fixes for most of the PAM modules, including several
string length checks and fixes (update recommended!).
* fix for legacy behavior of pam_setcred and pam_close_session in
the case that pam_authenticate and pam_open_session hadn't been
called
* pam_unix:
- don't zero out password strings during password changing function
* pam_wheel:
- feature: can use the module to provide wheel access to non-root
accounts.
* pam_limits:
- added '%' domain for maxlogins limiting, now '*' and @group
have the old meaning (every) and '%' the new one (all)
- handle negative priority limits (which can apply to the
superuser too).
* pam_userdb:
- require that all of typed password matches that in database
* pam_access:
- added the 'fieldsep=' argument, made a PAM_RHOST of ""
equivalent to NULL
Incidentally, cups-1.1.18 will once again do PAM authentication using
pam_unix.so if built against PAM-0.77.
Diffstat (limited to 'security/PAM/patches/patch-al')
-rw-r--r-- | security/PAM/patches/patch-al | 48 |
1 files changed, 12 insertions, 36 deletions
diff --git a/security/PAM/patches/patch-al b/security/PAM/patches/patch-al index ab79d039881..917f0ba6c47 100644 --- a/security/PAM/patches/patch-al +++ b/security/PAM/patches/patch-al @@ -1,37 +1,13 @@ -$NetBSD: patch-al,v 1.2 2002/01/29 17:10:11 jlam Exp $ +$NetBSD: patch-al,v 1.3 2002/12/23 21:23:59 jlam Exp $ ---- modules/pam_issue/pam_issue.c.orig Wed Feb 21 23:49:45 2001 -+++ modules/pam_issue/pam_issue.c -@@ -21,6 +21,7 @@ - #include <stdio.h> - #include <stdlib.h> - #include <sys/types.h> -+#include <sys/param.h> - #include <sys/stat.h> - #include <time.h> - #include <fcntl.h> -@@ -215,12 +216,24 @@ - case 'U': - { - int users = 0; -+#if (defined(BSD) && BSD >= 199306) -+ struct utmp ut; -+ FILE *uf; -+ -+ if ((uf == fopen(_PATH_UTMP, "r")) != NULL) { -+ while (fread(&ut, sizeof(ut), 1, uf) > 0) -+ if (ut.ut_name[0] != '\0') -+ ++users; -+ (void) fclose(uf); -+ } -+#else - struct utmp *ut; - setutent(); - while ((ut = getutent())) - if (ut->ut_type == USER_PROCESS) - users++; - endutent(); -+#endif - printf ("%d ", users); - if (c == 'U') - snprintf (buf, 1024, "%s", (users == 1) ? +--- modules/pam_group/Makefile.orig Sun Nov 19 18:54:04 2000 ++++ modules/pam_group/Makefile +@@ -14,8 +14,4 @@ INSTALLED_CONFILE=$(SCONFIGD)/group.conf + DEFS=-DDEFAULT_CONF_FILE=\"$(CONFILE)\" + CFLAGS += $(DEFS) + +-MODULE_SIMPLE_INSTALL=bash -f ../install_conf "$(FAKEROOT)" "$(SCONFIGD)" "$(INSTALLED_CONFILE)" "$(TITLE)" "$(LOCAL_CONFILE)" +-MODULE_SIMPLE_REMOVE=rm -f $(FAKEROOT)$(INSTALLED_CONFILE) +-MODULE_SIMPLE_CLEAN=rm -f ./.ignore_age +- + include ../Simple.Rules |