summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorsalo <salo@pkgsrc.org>2005-06-06 13:25:12 +0000
committersalo <salo@pkgsrc.org>2005-06-06 13:25:12 +0000
commitec2520d1c16d575959f360dd777e66e6e6c553b6 (patch)
treee0968818183e627ed23c4f80668442b331c8e709 /net
parent0b685f3b08108145aaaee83eddc48004d9106141 (diff)
downloadpkgsrc-ec2520d1c16d575959f360dd777e66e6e6c553b6.tar.gz
Security fixes for CAN-2004-0882, CAN-2004-0930 and CAN-2004-1154.
Patches adapted from SuSE. Functionality not tested beyond simple smbclient operations. This package is marked for removal before next stable branch is cut.
Diffstat (limited to 'net')
-rw-r--r--net/samba2/Makefile5
-rw-r--r--net/samba2/Makefile.common8
-rw-r--r--net/samba2/distinfo13
-rw-r--r--net/samba2/patches/patch-ap20
4 files changed, 30 insertions, 16 deletions
diff --git a/net/samba2/Makefile b/net/samba2/Makefile
index e8b9cc617dd..f1b418f5bd5 100644
--- a/net/samba2/Makefile
+++ b/net/samba2/Makefile
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.22 2005/06/03 22:54:44 jlam Exp $
+# $NetBSD: Makefile,v 1.23 2005/06/06 13:25:12 salo Exp $
.include "Makefile.common"
-PKGREVISION= # empty1
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.samba.org/
-PKGREVISION= 1
+PKGREVISION= 2
COMMENT= SMB/CIFS protocol server suite for UNIX
USE_PKGINSTALL= yes
diff --git a/net/samba2/Makefile.common b/net/samba2/Makefile.common
index 5a2a10adbef..e58a6981c59 100644
--- a/net/samba2/Makefile.common
+++ b/net/samba2/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2005/06/02 09:48:43 salo Exp $
+# $NetBSD: Makefile.common,v 1.7 2005/06/06 13:25:12 salo Exp $
#
# NOTE: This file is included by:
#
@@ -18,6 +18,12 @@ MASTER_SITES+= ftp://${COUNTRY}.samba.org/pub/samba/old-versions/
.endfor
EXTRACT_SUFX= .tar.gz
+PATCH_SITES= ${MASTER_SITE_LOCAL}
+PATCHFILES= samba-2.2.12-CAN-2004-0882.diff.gz \
+ samba-2.2.12-CAN-2004-0930.diff.gz \
+ samba-2.2.12-CAN-2004-1154.diff.gz
+PATCH_DIST_STRIP= -p2
+
DISTINFO_FILE?= ${.CURDIR}/../../net/samba2/distinfo
PATCHDIR?= ${.CURDIR}/../../net/samba2/patches
diff --git a/net/samba2/distinfo b/net/samba2/distinfo
index 46cb3230cf4..09695414184 100644
--- a/net/samba2/distinfo
+++ b/net/samba2/distinfo
@@ -1,8 +1,17 @@
-$NetBSD: distinfo,v 1.4 2005/05/25 13:15:40 wiz Exp $
+$NetBSD: distinfo,v 1.5 2005/06/06 13:25:12 salo Exp $
SHA1 (samba-2.2.12.tar.gz) = 9f8cf8bef5f7aace692d06c7d1f60be61b046bad
RMD160 (samba-2.2.12.tar.gz) = a01c42c8d3d44c1de339be3b012cc9d4168b0d3e
Size (samba-2.2.12.tar.gz) = 5459704 bytes
+SHA1 (samba-2.2.12-CAN-2004-0882.diff.gz) = df1e3e070aa3c2814ab07df5f6fa2d3a286a659b
+RMD160 (samba-2.2.12-CAN-2004-0882.diff.gz) = 0f3ac1329e827d2570eeafe55ab9d26dacc2d55f
+Size (samba-2.2.12-CAN-2004-0882.diff.gz) = 1432 bytes
+SHA1 (samba-2.2.12-CAN-2004-0930.diff.gz) = bfb7398b438f16ead569b3eab263d8066d70f8e5
+RMD160 (samba-2.2.12-CAN-2004-0930.diff.gz) = 2db2e9695eb9c08b5cc598ba75c48aca8e04ad31
+Size (samba-2.2.12-CAN-2004-0930.diff.gz) = 3027 bytes
+SHA1 (samba-2.2.12-CAN-2004-1154.diff.gz) = 5dde5315bf8e7851344322b7d4676774ee5c4a2d
+RMD160 (samba-2.2.12-CAN-2004-1154.diff.gz) = e788027f207bb0481d31e33e5d535dd56e4912b8
+Size (samba-2.2.12-CAN-2004-1154.diff.gz) = 59813 bytes
SHA1 (patch-aa) = 7f85ab121ffbcb67eb1f1c59f49245dda2eff44d
SHA1 (patch-ab) = 8be47e3f277f191aff18f77d8ed5ef4d8903ec5f
SHA1 (patch-ac) = cfde267ffe57046de18691f612e73ecdd1158d86
@@ -11,7 +20,7 @@ SHA1 (patch-ag) = e296e076c6bfe20b839f6f6be83873d7cfcc9d89
SHA1 (patch-ah) = e87f2e393db68acc7028fe20d4772455379ad7aa
SHA1 (patch-aj) = e2c5f7580a8c701b6bf35d0d3004f714f2c810cb
SHA1 (patch-al) = 9507677d964044416802e91597c29310c61c9622
-SHA1 (patch-ap) = cc0b3d73d0c7de4cd46e66b0d66b2c3bbaddeb41
+SHA1 (patch-ap) = 1a8409ba329a18b8b1b8a4ff63f510089465dbdc
SHA1 (patch-aq) = ea9cd9097cf91dd2b9f1acd9e6ff6f9445505774
SHA1 (patch-ar) = e5b442fb7eb837bb2771ac71c73e6f95ae6fdfc2
SHA1 (patch-as) = 019cd56e1a0f3c4517e1701e09d0a7cbd741df93
diff --git a/net/samba2/patches/patch-ap b/net/samba2/patches/patch-ap
index 207e1041f88..3e69c0e652b 100644
--- a/net/samba2/patches/patch-ap
+++ b/net/samba2/patches/patch-ap
@@ -1,9 +1,9 @@
-$NetBSD: patch-ap,v 1.1.1.1 2004/01/11 00:41:13 jlam Exp $
+$NetBSD: patch-ap,v 1.2 2005/06/06 13:25:12 salo Exp $
Expand & in the gecos field to a capitalized login name.
---- lib/util_getent.c.orig Sat Feb 2 19:46:42 2002
-+++ lib/util_getent.c Sun Oct 13 21:37:56 2002
+--- lib/util_getent.c.orig 2005-04-09 19:27:42.000000000 +0200
++++ lib/util_getent.c 2005-04-09 19:35:09.000000000 +0200
@@ -155,6 +155,11 @@
struct sys_pwent *plist;
struct sys_pwent *pent;
@@ -14,7 +14,7 @@ Expand & in the gecos field to a capitalized login name.
+ int buflen;
+#endif
- pent = (struct sys_pwent *) malloc(sizeof(struct sys_pwent));
+ pent = SMB_MALLOC_P(struct sys_pwent);
if (pent == NULL) {
@@ -178,9 +183,38 @@
pent->pw_uid = pwd->pw_uid;
@@ -31,10 +31,10 @@ Expand & in the gecos field to a capitalized login name.
+ if (bp >= &buf[BUFLEN - 1])
+ /* buffer overflow */
+ goto gecos_done;
-+ if (*p == '&') {
++ if (*p == '&') {
+ /* interpolate full name */
+ snprintf(bp, BUFLEN - (bp - buf),
-+ "%s", pwd->pw_name);
++ "%s", pwd->pw_name);
+ *bp = toupper(*bp);
+ bp += strlen(bp);
+ }
@@ -42,16 +42,16 @@ Expand & in the gecos field to a capitalized login name.
+ *bp++ = *p;
+ }
+ *bp = '\0';
-+ if ((pent->pw_name = strdup(buf)) == NULL)
++ if ((pent->pw_name = SMB_STRDUP(buf)) == NULL)
+ goto err;
+#else
- if ((pent->pw_name = strdup(pwd->pw_gecos)) == NULL)
+ if ((pent->pw_name = SMB_STRDUP(pwd->pw_gecos)) == NULL)
goto err;
+#endif
}
+#ifdef BSD
-+ gecos_done:
++ gecos_done:
+#endif
if (pwd->pw_dir) {
- if ((pent->pw_name = strdup(pwd->pw_dir)) == NULL)
+ if ((pent->pw_name = SMB_STRDUP(pwd->pw_dir)) == NULL)
goto err;