diff options
author | Matt Rickard <frogger@gentoo.org> | 2003-10-29 22:43:21 +0000 |
---|---|---|
committer | Matt Rickard <frogger@gentoo.org> | 2003-10-29 22:43:21 +0000 |
commit | f1c1a463aaf9cf376a7159d0a78e151e572488c1 (patch) | |
tree | 8b7f757bb12dbbad9899926b1066f8e7b1d47aa1 /sys-kernel/hardened-sources | |
parent | New 2.4.22 based hardened-sources (diff) | |
download | gentoo-2-f1c1a463aaf9cf376a7159d0a78e151e572488c1.tar.gz gentoo-2-f1c1a463aaf9cf376a7159d0a78e151e572488c1.tar.bz2 gentoo-2-f1c1a463aaf9cf376a7159d0a78e151e572488c1.zip |
New 2.4.22 based hardened-sources
Diffstat (limited to 'sys-kernel/hardened-sources')
-rw-r--r-- | sys-kernel/hardened-sources/ChangeLog | 16 | ||||
-rw-r--r-- | sys-kernel/hardened-sources/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/hardened-sources/files/digest-hardened-sources-2.4.22 | 2 | ||||
-rw-r--r-- | sys-kernel/hardened-sources/hardened-sources-2.4.22.ebuild | 81 |
4 files changed, 100 insertions, 3 deletions
diff --git a/sys-kernel/hardened-sources/ChangeLog b/sys-kernel/hardened-sources/ChangeLog index 9243b3cafc04..fdd1ccc648fd 100644 --- a/sys-kernel/hardened-sources/ChangeLog +++ b/sys-kernel/hardened-sources/ChangeLog @@ -1,6 +1,20 @@ # ChangeLog for sys-kernel/hardened-sources # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hardened-sources/ChangeLog,v 1.12 2003/09/14 18:07:06 frogger Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hardened-sources/ChangeLog,v 1.13 2003/10/29 22:43:15 frogger Exp $ + + 29 Oct 2003; Matthew Rickard <frogger@gentoo.org> hardened-sources-2.4.22.ebuild: + New 2.4.22 based hardened-sources thanks to + Phil West <p.west@computer.org>. + + These sources include: + -New SELinux API + -Updated CK-base + -Updated GRSec + -Systrace + -SuperFreeS/WAN 1.99.8 + -Propolice kernel build support + -EVMS + -Other various security related patches *hardened-sources-2.4.21 (14 Sep 2003) diff --git a/sys-kernel/hardened-sources/Manifest b/sys-kernel/hardened-sources/Manifest index b170113f771f..572cf8d28c2c 100644 --- a/sys-kernel/hardened-sources/Manifest +++ b/sys-kernel/hardened-sources/Manifest @@ -1,8 +1,8 @@ MD5 b5a1c56ff94472c026d1437a5f6662e6 hardened-sources-2.4.20-r4.ebuild 2145 -MD5 4f0fde27df9ecbd154259c91822c833b hardened-sources-2.4.22.ebuild 2626 +MD5 e0fd8b12b069db8e54dd9cd397c80970 hardened-sources-2.4.22.ebuild 2626 MD5 1b321c5f39f11f56a77118555670747c hardened-sources-2.4.20-r3.ebuild 2145 MD5 8d8b5683212f6ef7e251bc6abb028266 hardened-sources-2.4.21.ebuild 2404 -MD5 459c5648131a00fb500952a7f425d12e ChangeLog 4261 +MD5 74911da63b2458c90ec95f82fdf2b877 ChangeLog 4261 MD5 724c01628b1dd03c8bfe196f0ae31368 metadata.xml 558 MD5 c7e011900c8c6ea5dc332d2f10c25733 hardened-sources-2.4.20-r2.ebuild 2227 MD5 e8b051baa93e07c4185474fb0e94e3af files/digest-hardened-sources-2.4.20-r2 147 diff --git a/sys-kernel/hardened-sources/files/digest-hardened-sources-2.4.22 b/sys-kernel/hardened-sources/files/digest-hardened-sources-2.4.22 new file mode 100644 index 000000000000..ccfd14cb665f --- /dev/null +++ b/sys-kernel/hardened-sources/files/digest-hardened-sources-2.4.22 @@ -0,0 +1,2 @@ +MD5 75dc85149b06ac9432106b8941eb9f7b linux-2.4.22.tar.bz2 29528612 +MD5 cb58e57bf9c2115eb71745761209df97 patches-2.4.22-hardened.tar.bz2 2592916 diff --git a/sys-kernel/hardened-sources/hardened-sources-2.4.22.ebuild b/sys-kernel/hardened-sources/hardened-sources-2.4.22.ebuild new file mode 100644 index 000000000000..bd016258fdd4 --- /dev/null +++ b/sys-kernel/hardened-sources/hardened-sources-2.4.22.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hardened-sources/hardened-sources-2.4.22.ebuild,v 1.1 2003/10/29 22:43:15 frogger Exp $ + +IUSE="build selinux" + +# OKV=original kernel version, KV=patched kernel version. They can be the same. + +ETYPE="sources" + +inherit kernel || die + +OKV=2.4.22 +EXTRAVERSION=-hardened +KV=${OKV}${EXTRAVERSION} +S=${WORKDIR}/linux-${KV} +DESCRIPTION="Special Security Hardened Gentoo Linux Kernel" +SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 + mirror://gentoo/patches-${KV}.tar.bz2" + + +HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/proj/en/hardened/" +KEYWORDS="~x86 ~ppc" +SLOT="${KV}" + +src_unpack() { + unpack linux-${OKV}.tar.bz2 patches-${KV}.tar.bz2 + mv linux-${OKV} linux-${KV} || die + + cd ${KV} + # We can't use LSM/SELinux and GRSec in the same kernel. If USE=selinux, we will + # patch in LSM/SELinux and drop support for GRsec. Otherwise we will include GRSec. + if [ "`use selinux`" ]; then + einfo "Enabling SELinux support. This will drop GRSec2 support." + for file in *grsec*; do + einfo "Dropping ${file}.." + rm -f ${file} + done + else + einfo "Did not find \"selinux\" in use, building with GRSec2 support." + for file in *lsm* *selinux*; do + einfo "Dropping ${file}..." + rm -f ${file} + done + fi + + kernel_src_unpack +} + +src_install() { + if [ "`use selinux`" ]; then + insinto /usr/flask + doins ${S}/security/selinux/flask/access_vectors + doins ${S}/security/selinux/flask/security_classes + doins ${S}/security/selinux/flask/initial_sids + insinto /usr/include/linux/flask + doins ${S}/security/selinux/include/linux/flask/*.h + insinto /usr/include/asm/flask + doins ${S}/security/selinux/include/asm/flask/uninstd.h + fi + + kernel_src_install +} + +pkg_postinst() { + einfo "This kernel contains LSM/SElinux or GRSecurity, and Systrace" + einfo "Also included are various other performance and security related patches" + einfo "If you experience problems with this kernel please report them by" + einfo "assigning bugs on bugs.gentoo.org to frogger@gentoo.org" + if [ "`use selinux`" ]; then + einfo "" + einfo "Warning! This kernel contains the new SELinux API and currently" + einfo "does not support ReiserFS. If you need ReiserFS support, and are" + einfo "using SELinux, then do not use this kernel." + einfo "" + einfo "The new SELinux API contains many changes from the previous API," + einfo "including new userspace utilities. Please see " + einfo "http://www.gentoo.org/proj/en/hardened/selinux for more info." + fi +} + |