diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2004-02-16 13:49:01 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2004-02-16 13:49:01 +0000 |
commit | c92d4783e208c074d5fcb48f3be47c871c88b342 (patch) | |
tree | 9dc1d833bca61bc7b72ac7b11480824a9ae7c068 /sys-kernel/aa-sources | |
parent | Added die if license check is failed. (diff) | |
download | historical-c92d4783e208c074d5fcb48f3be47c871c88b342.tar.gz historical-c92d4783e208c074d5fcb48f3be47c871c88b342.tar.bz2 historical-c92d4783e208c074d5fcb48f3be47c871c88b342.zip |
Added the fix for the ptrace vulnerability for AMD64 platforms.
Diffstat (limited to 'sys-kernel/aa-sources')
-rw-r--r-- | sys-kernel/aa-sources/ChangeLog | 8 | ||||
-rw-r--r-- | sys-kernel/aa-sources/Manifest | 5 | ||||
-rw-r--r-- | sys-kernel/aa-sources/aa-sources-2.4.23-r1.ebuild | 3 | ||||
-rw-r--r-- | sys-kernel/aa-sources/files/aa-sources-2.4.23.CAN-2004-0001.patch | 29 |
4 files changed, 40 insertions, 5 deletions
diff --git a/sys-kernel/aa-sources/ChangeLog b/sys-kernel/aa-sources/ChangeLog index 28fb8328f24f..073989ad8951 100644 --- a/sys-kernel/aa-sources/ChangeLog +++ b/sys-kernel/aa-sources/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-kernel/aa-sources -# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/aa-sources/ChangeLog,v 1.26 2004/01/08 17:44:57 plasmaroo Exp $ +# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/aa-sources/ChangeLog,v 1.27 2004/02/16 13:49:00 plasmaroo Exp $ + + 16 Feb 2004; <plasmaroo@gentoo.org> aa-sources-2.4.23-r1.ebuild, + files/aa-sources-2.4.23.CAN-2004-0001.patch: + Added the fix for the ptrace vulnerability for AMD64 platforms. 08 Jan 2004; Brian Jackson <iggy@gentoo.org> aa-sources-2.4.23-r1.ebuild: Somebody accidentally commented ${OKV}, bug 37588 resolved. diff --git a/sys-kernel/aa-sources/Manifest b/sys-kernel/aa-sources/Manifest index e62533a37b7d..a1be85497674 100644 --- a/sys-kernel/aa-sources/Manifest +++ b/sys-kernel/aa-sources/Manifest @@ -1,9 +1,10 @@ -MD5 ea754f7a854befc5c6e0994b96740233 ChangeLog 3946 +MD5 1d3a9e4d9466cffb59c463f0a0027909 ChangeLog 4127 MD5 399eb7607b8f1f3f597e93566b1bda7c metadata.xml 453 -MD5 bdaea90ff54750afe30d307af5e60fd7 aa-sources-2.4.23-r1.ebuild 2249 +MD5 cfa2d7ba668fca0e26a687cb664dc6ba aa-sources-2.4.23-r1.ebuild 2344 MD5 c3a5fc97c1f5e6d4feb3e0f6b14212d1 aa-sources-2.4.22-r1.ebuild 2418 MD5 e2e2b545b6fcdcecf49e33798efa5b84 files/aa-sources-2.4.23.rtc_fix.patch 7073 MD5 e77a93fdf26f06cf3ea5080b27211725 files/aa-sources-2.4.23.CAN-2003-0985.patch 414 +MD5 bf2b609e8cab6460d220b1267db09826 files/aa-sources-2.4.23.CAN-2004-0001.patch 982 MD5 017a713155afe3e4b9c5672eef0bc959 files/digest-aa-sources-2.4.22-r1 126 MD5 fcfb3fc100621b77d191f86b66dd810a files/aa-sources-2.4.22-ide-scsi-missing-sym-fix.patch 465 MD5 23188d802797d56fc9b4a55f3b1d3b31 files/digest-aa-sources-2.4.23-r1 126 diff --git a/sys-kernel/aa-sources/aa-sources-2.4.23-r1.ebuild b/sys-kernel/aa-sources/aa-sources-2.4.23-r1.ebuild index 31633d483e1c..27b8d67002ec 100644 --- a/sys-kernel/aa-sources/aa-sources-2.4.23-r1.ebuild +++ b/sys-kernel/aa-sources/aa-sources-2.4.23-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/aa-sources/aa-sources-2.4.23-r1.ebuild,v 1.5 2004/01/08 15:14:15 iggy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/aa-sources/aa-sources-2.4.23-r1.ebuild,v 1.6 2004/02/16 13:49:00 plasmaroo Exp $ IUSE="build" @@ -62,6 +62,7 @@ src_unpack() { sed -e '51i \ qsort.o \\' -i fs/xfs/support/Makefile epatch ${FILESDIR}/${P}.CAN-2003-0985.patch || die "Failed to apply mremap() patch!" + epatch ${FILESDIR}/${P}.CAN-2004-0001.patch || die "Failed to apply AMD64 ptrace patch!" epatch ${FILESDIR}/${P}.rtc_fix.patch || die "Failed to apply RTC patch!" kernel_universal_unpack diff --git a/sys-kernel/aa-sources/files/aa-sources-2.4.23.CAN-2004-0001.patch b/sys-kernel/aa-sources/files/aa-sources-2.4.23.CAN-2004-0001.patch new file mode 100644 index 000000000000..bb51f9aa9a62 --- /dev/null +++ b/sys-kernel/aa-sources/files/aa-sources-2.4.23.CAN-2004-0001.patch @@ -0,0 +1,29 @@ +diff -u linux/arch/x86_64/ia32/ptrace32.c-PTRACE linux/arch/x86_64/ia32/ptrace32.c +--- linux/arch/x86_64/ia32/ptrace32.c-PTRACE 2003-06-16 13:03:58.000000000 +0200 ++++ linux/arch/x86_64/ia32/ptrace32.c 2004-01-07 18:04:43.000000000 +0100 +@@ -25,6 +25,10 @@ + #include <asm/fpu32.h> + #include <linux/mm.h> + ++/* determines which flags the user has access to. */ ++/* 1 = access 0 = no access */ ++#define FLAG_MASK 0x44dd5UL ++ + #define R32(l,q) \ + case offsetof(struct user32, regs.l): stack[offsetof(struct pt_regs, q)/8] = val; break + +@@ -69,9 +73,12 @@ + R32(eip, rip); + R32(esp, rsp); + +- case offsetof(struct user32, regs.eflags): +- stack[offsetof(struct pt_regs, eflags)/8] = val & 0x44dd5; ++ case offsetof(struct user32, regs.eflags): { ++ __u64 *flags = &stack[offsetof(struct pt_regs, eflags)/8]; ++ val &= FLAG_MASK; ++ *flags = val | (*flags & ~FLAG_MASK); + break; ++ } + + case offsetof(struct user32, u_debugreg[4]): + case offsetof(struct user32, u_debugreg[5]): |