summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Luzzardi <scox@gentoo.org>2004-08-08 20:45:05 +0000
committerAndrea Luzzardi <scox@gentoo.org>2004-08-08 20:45:05 +0000
commit633d82b10c79bc1528eb4bdcdf9eeb75b114ca3d (patch)
tree2cfe76d5d71cb4934ef65d073abb374680a95b44 /sys-kernel/hardened-sources
parentFixed bug #59288: Invalid reference to "/usr/local/info" in maxima's emacs mo... (diff)
downloadgentoo-2-633d82b10c79bc1528eb4bdcdf9eeb75b114ca3d.tar.gz
gentoo-2-633d82b10c79bc1528eb4bdcdf9eeb75b114ca3d.tar.bz2
gentoo-2-633d82b10c79bc1528eb4bdcdf9eeb75b114ca3d.zip
Added hardened-sources-2.4.27 which is a port of the 2.4.26-r5 version.
Diffstat (limited to 'sys-kernel/hardened-sources')
-rw-r--r--sys-kernel/hardened-sources/ChangeLog11
-rw-r--r--sys-kernel/hardened-sources/Manifest5
-rw-r--r--sys-kernel/hardened-sources/files/2.4.27-CAN-2004-0394.patch12
-rw-r--r--sys-kernel/hardened-sources/files/digest-hardened-sources-2.4.272
-rw-r--r--sys-kernel/hardened-sources/hardened-sources-2.4.27.ebuild36
5 files changed, 63 insertions, 3 deletions
diff --git a/sys-kernel/hardened-sources/ChangeLog b/sys-kernel/hardened-sources/ChangeLog
index fba5ceb92764..041322017dfb 100644
--- a/sys-kernel/hardened-sources/ChangeLog
+++ b/sys-kernel/hardened-sources/ChangeLog
@@ -1,12 +1,19 @@
# ChangeLog for sys-kernel/hardened-sources
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hardened-sources/ChangeLog,v 1.34 2004/08/08 06:31:28 scox Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hardened-sources/ChangeLog,v 1.35 2004/08/08 20:45:05 scox Exp $
+
+*hardened-sources-2.4.27 (08 Aug 2004)
+
+ 08 Aug 2004; Andrea Luzzardi <scox@gentoo.org>
+ +hardened-sources-2.4.27.ebuild,
+ +files/2.4.27-CAN-2004-0394.patch:
+ Ported the patchball to the 2.4.27 kernel version.
*hardened-sources-2.4.26-r5 (07 Aug 2004)
07 Aug 2004; Andrea Luzzardi <scox@gentoo.org>
+hardened-sources-2.4.26-r5.ebuild:
- Updated to use the new hardened-patches-2.4.26.1 patchball.
+ Updated to use the new hardened-patches-2.4-26.1 patchball.
It adds the following features:
- Squashfs
- Ebtables
diff --git a/sys-kernel/hardened-sources/Manifest b/sys-kernel/hardened-sources/Manifest
index 13f6229d0c69..1ef74eb1a9ea 100644
--- a/sys-kernel/hardened-sources/Manifest
+++ b/sys-kernel/hardened-sources/Manifest
@@ -1,6 +1,7 @@
MD5 1741288522d81cb3af00710a3b025a41 hardened-sources-2.4.26-r5.ebuild 1195
+MD5 85fde34c83f10a74cf99174a22bb702f hardened-sources-2.4.27.ebuild 907
MD5 758c55fabf65a03bc4c56ee9165366bc hardened-sources-2.4.26-r4.ebuild 1194
-MD5 a37fcea6c70206ea6d4e1d9bee0e5b90 ChangeLog 9020
+MD5 84248aa11fc42873e33f4cd473d88966 ChangeLog 9118
MD5 0a473e60c059cb41c96a6bbcbff84769 metadata.xml 459
MD5 0f66013f643c79c97fda489618a4e2fd files/2.4.26-CAN-2004-0535.patch 476
MD5 dc18e982f8149588a291956481885a8c files/2.4.26-CAN-2004-0495.patch 17549
@@ -9,3 +10,5 @@ MD5 8850fb5244d9d10736d95a85f3c5b3f1 files/2.4.26-CAN-2004-0394.patch 448
MD5 3bdf00d5f80fe9dfbfe8220e076cd04c files/2.4.26-CAN-2004-0497.patch 707
MD5 672a867210b52775742afbe2c3f3d44b files/digest-hardened-sources-2.4.26-r4 221
MD5 9885017f71e3c5b392a163359d2467aa files/digest-hardened-sources-2.4.26-r5 221
+MD5 b6117ce855b957361c71b35e8c035dc8 files/digest-hardened-sources-2.4.27 145
+MD5 8850fb5244d9d10736d95a85f3c5b3f1 files/2.4.27-CAN-2004-0394.patch 448
diff --git a/sys-kernel/hardened-sources/files/2.4.27-CAN-2004-0394.patch b/sys-kernel/hardened-sources/files/2.4.27-CAN-2004-0394.patch
new file mode 100644
index 000000000000..f2e421dc7861
--- /dev/null
+++ b/sys-kernel/hardened-sources/files/2.4.27-CAN-2004-0394.patch
@@ -0,0 +1,12 @@
+diff -urN linux-2.4.26-hardened/kernel/panic.c linux-2.4.26-can/kernel/panic.c
+--- linux-2.4.26-hardened/kernel/panic.c 2003-11-28 19:26:21.000000000 +0100
++++ linux-2.4.26-can/kernel/panic.c 2004-06-22 22:40:11.000000000 +0200
+@@ -59,7 +59,7 @@
+
+ bust_spinlocks(1);
+ va_start(args, fmt);
+- vsprintf(buf, fmt, args);
++ vsnprintf(buf, sizeof(buf), fmt, args);
+ va_end(args);
+ printk(KERN_EMERG "Kernel panic: %s\n",buf);
+ if (in_interrupt())
diff --git a/sys-kernel/hardened-sources/files/digest-hardened-sources-2.4.27 b/sys-kernel/hardened-sources/files/digest-hardened-sources-2.4.27
new file mode 100644
index 000000000000..7342da8d549d
--- /dev/null
+++ b/sys-kernel/hardened-sources/files/digest-hardened-sources-2.4.27
@@ -0,0 +1,2 @@
+MD5 59a2e6fde1d110e2ffa20351ac8b4d9e linux-2.4.27.tar.bz2 30898453
+MD5 5174be476d6f4c92d3373a6def89beab hardened-patches-2.4-27.0.tar.bz2 520002
diff --git a/sys-kernel/hardened-sources/hardened-sources-2.4.27.ebuild b/sys-kernel/hardened-sources/hardened-sources-2.4.27.ebuild
new file mode 100644
index 000000000000..2fc372a54896
--- /dev/null
+++ b/sys-kernel/hardened-sources/hardened-sources-2.4.27.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hardened-sources/hardened-sources-2.4.27.ebuild,v 1.1 2004/08/08 20:45:05 scox Exp $
+
+IUSE="selinux"
+ETYPE="sources"
+inherit kernel-2
+detect_version
+
+HGPV=27.0
+HGPV_SRC="http://dev.gentoo.org/~scox/kernels/v2.4/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}.tar.bz2"
+
+UNIPATCH_STRICTORDER="yes"
+
+# According to the patchset numbering scheme, 31xx patches are grsec related
+# while 32xx are SELinux related.
+
+if use selinux; then
+ UNIPATCH_EXCLUDE="31"
+else
+ UNIPATCH_EXCLUDE="32"
+fi
+
+UNIPATCH_LIST=" ${DISTDIR}/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}.tar.bz2 \
+ ${FILESDIR}/${OKV}*.patch"
+
+UNIPATCH_DOCS="${WORKDIR}/patches/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}/0000_README"
+
+DESCRIPTION="Hardened sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
+
+SRC_URI="${KERNEL_URI} ${HGPV_SRC}"
+KEYWORDS="~x86 -ppc"
+
+pkg_postinst() {
+ postinst_sources
+}