diff options
author | Christian Zoffoli <xmerlin@gentoo.org> | 2006-07-24 17:59:10 +0000 |
---|---|---|
committer | Christian Zoffoli <xmerlin@gentoo.org> | 2006-07-24 17:59:10 +0000 |
commit | f4edbf3ba262f99c56b18506b3c67530027ebaab (patch) | |
tree | 4163a6dbdef8b76c944ebac5d11ad2973719ab1c /sys-cluster/heartbeat | |
parent | Stable on sparc wrt #140369 (diff) | |
download | gentoo-2-f4edbf3ba262f99c56b18506b3c67530027ebaab.tar.gz gentoo-2-f4edbf3ba262f99c56b18506b3c67530027ebaab.tar.bz2 gentoo-2-f4edbf3ba262f99c56b18506b3c67530027ebaab.zip |
Local DOS attack fix.
(Portage version: 2.1-r1)
Diffstat (limited to 'sys-cluster/heartbeat')
-rw-r--r-- | sys-cluster/heartbeat/ChangeLog | 7 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/heartbeat-2.0.4-fix-local-DOS-attack.patch | 11 | ||||
-rw-r--r-- | sys-cluster/heartbeat/heartbeat-2.0.4.ebuild | 3 | ||||
-rw-r--r-- | sys-cluster/heartbeat/heartbeat-2.0.5.ebuild | 7 | ||||
-rw-r--r-- | sys-cluster/heartbeat/heartbeat-2.0.6.ebuild | 9 |
5 files changed, 32 insertions, 5 deletions
diff --git a/sys-cluster/heartbeat/ChangeLog b/sys-cluster/heartbeat/ChangeLog index b1409150fc3f..090bdfa260b5 100644 --- a/sys-cluster/heartbeat/ChangeLog +++ b/sys-cluster/heartbeat/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-cluster/heartbeat # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.49 2006/07/20 13:11:24 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.50 2006/07/24 17:59:10 xmerlin Exp $ + + 24 Jul 2006; Christian Zoffoli <xmerlin@gentoo.org> + +files/heartbeat-2.0.4-fix-local-DOS-attack.patch, heartbeat-2.0.4.ebuild, + heartbeat-2.0.5.ebuild, heartbeat-2.0.6.ebuild: + Local DOS attack fix. *heartbeat-2.0.6 (20 Jul 2006) diff --git a/sys-cluster/heartbeat/files/heartbeat-2.0.4-fix-local-DOS-attack.patch b/sys-cluster/heartbeat/files/heartbeat-2.0.4-fix-local-DOS-attack.patch new file mode 100644 index 000000000000..c688e2964661 --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat-2.0.4-fix-local-DOS-attack.patch @@ -0,0 +1,11 @@ +--- heartbeat-2.0.4/heartbeat/heartbeat.c.orig 2006-02-24 17:52:26.000000000 +0100 ++++ heartbeat-2.0.4/heartbeat/heartbeat.c 2006-07-24 20:11:14.000000000 +0200 +@@ -502,7 +502,7 @@ + int ipcid; + struct pstat_shm * shm; + +- if ((ipcid = shmget(IPC_PRIVATE, sizeof(*procinfo), 0666)) < 0) { ++ if ((ipcid = shmget(IPC_PRIVATE, sizeof(*procinfo), 0600)) < 0) { + cl_perror("Cannot shmget for process status"); + return; + } diff --git a/sys-cluster/heartbeat/heartbeat-2.0.4.ebuild b/sys-cluster/heartbeat/heartbeat-2.0.4.ebuild index 66458263d704..cc22e290bdd2 100644 --- a/sys-cluster/heartbeat/heartbeat-2.0.4.ebuild +++ b/sys-cluster/heartbeat/heartbeat-2.0.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-2.0.4.ebuild,v 1.5 2006/07/14 17:41:48 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-2.0.4.ebuild,v 1.6 2006/07/24 17:59:10 xmerlin Exp $ inherit flag-o-matic eutils @@ -40,6 +40,7 @@ src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-op_list.patch || die + epatch ${FILESDIR}/${PN}-2.0.4-fix-local-DOS-attack.patch || die } src_compile() { diff --git a/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild b/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild index e1f256a31a83..17b2c40b114a 100644 --- a/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild +++ b/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild,v 1.2 2006/07/13 13:07:20 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild,v 1.3 2006/07/24 17:59:10 xmerlin Exp $ inherit flag-o-matic @@ -41,6 +41,11 @@ DEPEND=" ) " +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PN}-2.0.4-fix-local-DOS-attack.patch || die +} src_compile() { append-ldflags $(bindnow-flags) diff --git a/sys-cluster/heartbeat/heartbeat-2.0.6.ebuild b/sys-cluster/heartbeat/heartbeat-2.0.6.ebuild index 2f34329e38ba..26cc3bf3dd55 100644 --- a/sys-cluster/heartbeat/heartbeat-2.0.6.ebuild +++ b/sys-cluster/heartbeat/heartbeat-2.0.6.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-2.0.6.ebuild,v 1.1 2006/07/20 13:11:24 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-2.0.6.ebuild,v 1.2 2006/07/24 17:59:10 xmerlin Exp $ -inherit flag-o-matic +inherit flag-o-matic eutils DESCRIPTION="Heartbeat high availability cluster manager" HOMEPAGE="http://www.linux-ha.org" @@ -41,6 +41,11 @@ DEPEND=" ) " +src_unpack() { + unpack ${A} + cd ${S} + #epatch ${FILESDIR}/${PN}-2.0.4-fix-local-DOS-attack.patch || die +} src_compile() { append-ldflags $(bindnow-flags) |