summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Stadler <centic@gentoo.org>2005-01-27 17:44:47 +0000
committerDominik Stadler <centic@gentoo.org>2005-01-27 17:44:47 +0000
commit849613da50b0404f5d3a9b048c020d4b7b087762 (patch)
tree153289ade9f4efa7bef24db60c7dfab7fefc7b20 /net-firewall/firehol/files
parentMarked ppc stable for bug #79623. (diff)
downloadgentoo-2-849613da50b0404f5d3a9b048c020d4b7b087762.tar.gz
gentoo-2-849613da50b0404f5d3a9b048c020d4b7b087762.tar.bz2
gentoo-2-849613da50b0404f5d3a9b048c020d4b7b087762.zip
Add new version to fix security problems, see Bug 79330
(Portage version: 2.0.51-r14)
Diffstat (limited to 'net-firewall/firehol/files')
-rw-r--r--net-firewall/firehol/files/digest-firehol-1.2241
-rw-r--r--net-firewall/firehol/files/firehol-1.224-to-226.patch128
2 files changed, 129 insertions, 0 deletions
diff --git a/net-firewall/firehol/files/digest-firehol-1.224 b/net-firewall/firehol/files/digest-firehol-1.224
new file mode 100644
index 000000000000..681ee07fd536
--- /dev/null
+++ b/net-firewall/firehol/files/digest-firehol-1.224
@@ -0,0 +1 @@
+MD5 8033f99120b6df9de17e27914fbaf9be firehol-1.224.tar.bz2 117988
diff --git a/net-firewall/firehol/files/firehol-1.224-to-226.patch b/net-firewall/firehol/files/firehol-1.224-to-226.patch
new file mode 100644
index 000000000000..b0998f420179
--- /dev/null
+++ b/net-firewall/firehol/files/firehol-1.224-to-226.patch
@@ -0,0 +1,128 @@
+===================================================================
+RCS file: /cvsroot/firehol/firehol/firehol.sh,v
+retrieving revision 1.224
+retrieving revision 1.226
+diff -u -r1.224 -r1.226
+--- firehol/firehol/firehol.sh 2005/01/24 22:24:48 1.224
++++ firehol/firehol/firehol.sh 2005/01/25 21:28:19 1.226
+@@ -10,7 +10,7 @@
+ #
+ # config: /etc/firehol/firehol.conf
+ #
+-# $Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
++# $Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
+ #
+
+ # Make sure only root can run us.
+@@ -114,7 +114,7 @@
+ # Find our minor version
+ firehol_minor_version() {
+ ${CAT_CMD} <<"EOF" | ${CUT_CMD} -d ' ' -f 3 | ${CUT_CMD} -d '.' -f 2
+-$Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
++$Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
+ EOF
+ }
+
+@@ -144,7 +144,7 @@
+ # Directories and files
+
+ # These files will be created and deleted during our run.
+-FIREHOL_DIR="/tmp/firehol-tmp-$$"
++FIREHOL_DIR="/tmp/.firehol-tmp-$$-${RANDOM}-${RANDOM}"
+ FIREHOL_CHAINS_DIR="${FIREHOL_DIR}/chains"
+ FIREHOL_OUTPUT="${FIREHOL_DIR}/firehol-out.sh"
+ FIREHOL_SAVED="${FIREHOL_DIR}/firehol-save.sh"
+@@ -211,7 +211,7 @@
+ # Externally defined services can be placed in "${FIREHOL_CONFIG_DIR}/services/"
+ if [ ! -d "${FIREHOL_CONFIG_DIR}/services" ]
+ then
+- "${MKDIR_CMD}" -p "${FIREHOL_CONFIG_DIR}/services"
++ "${MKDIR_CMD}" "${FIREHOL_CONFIG_DIR}/services"
+ if [ $? -ne 0 ]
+ then
+ echo >&2
+@@ -239,14 +239,14 @@
+ exit 1
+ fi
+ fi
+-"${MKDIR_CMD}" -p "${FIREHOL_DIR}" || exit 1
+-"${MKDIR_CMD}" -p "${FIREHOL_CHAINS_DIR}" || exit 1
++"${MKDIR_CMD}" "${FIREHOL_DIR}" || exit 1
++"${MKDIR_CMD}" "${FIREHOL_CHAINS_DIR}" || exit 1
+
+
+ # Make sure we have a directory for our data.
+ if [ ! -d "${FIREHOL_SPOOL_DIR}" ]
+ then
+- "${MKDIR_CMD}" -p "${FIREHOL_SPOOL_DIR}" || exit 1
++ "${MKDIR_CMD}" "${FIREHOL_SPOOL_DIR}" || exit 1
+ "${CHOWN_CMD}" root:root "${FIREHOL_CONFIG_DIR}" || exit 1
+ "${CHMOD_CMD}" 700 "${FIREHOL_CONFIG_DIR}" || exit 1
+ fi
+@@ -1055,7 +1055,7 @@
+ local x=
+ for x in ${servers}
+ do
+- local tmp="${FIREHOL_DIR}/firehol.rpcinfo.$$"
++ local tmp="${FIREHOL_DIR}/firehol.rpcinfo.$$.${RANDOM}"
+
+ set_work_function "Getting RPC information from server '${x}'"
+
+@@ -1169,7 +1169,7 @@
+ local x=
+ for x in ${servers}
+ do
+- local tmp="${FIREHOL_DIR}/firehol.rpcinfo.$$"
++ local tmp="${FIREHOL_DIR}/firehol.rpcinfo.$$.${RANDOM}"
+
+ set_work_function "Getting RPC information from server '${x}'"
+
+@@ -2567,9 +2567,9 @@
+ if [ -f "/proc/config" ]
+ then
+ KERNEL_CONFIG="/proc/config"
+- ${CAT_CMD} /proc/config >/tmp/kcfg.$$
+- source /tmp/kcfg.$$
+- ${RM_CMD} -f /tmp/kcfg.$$
++ ${CAT_CMD} /proc/config >${FIREHOL_DIR}/kcfg
++ source ${FIREHOL_DIR}/kcfg
++ ${RM_CMD} -f ${FIREHOL_DIR}/kcfg
+
+ elif [ -f "/lib/modules/`${UNAME_CMD} -r`/build/.config" ]
+ then
+@@ -5121,7 +5121,7 @@
+ else
+
+ ${CAT_CMD} <<EOF
+-$Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
++$Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
+ (C) Copyright 2003, Costa Tsaousis <costa@tsaousis.gr>
+ FireHOL is distributed under GPL.
+
+@@ -5307,7 +5307,7 @@
+
+ ${CAT_CMD} <<EOF
+
+-$Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
++$Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
+ (C) Copyright 2003, Costa Tsaousis <costa@tsaousis.gr>
+ FireHOL is distributed under GPL.
+ Home Page: http://firehol.sourceforge.net
+@@ -5601,7 +5601,7 @@
+
+ "${CAT_CMD}" >&2 <<EOF
+
+-$Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
++$Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
+ (C) Copyright 2003, Costa Tsaousis <costa@tsaousis.gr>
+ FireHOL is distributed under GPL.
+ Home Page: http://firehol.sourceforge.net
+@@ -5684,7 +5684,7 @@
+ echo "# "
+
+ ${CAT_CMD} <<EOF
+-# $Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
++# $Id: firehol-1.224-to-226.patch,v 1.1 2005/01/27 17:44:47 centic Exp $
+ # (C) Copyright 2003, Costa Tsaousis <costa@tsaousis.gr>
+ # FireHOL is distributed under GPL.
+ # Home Page: http://firehol.sourceforge.net