summaryrefslogtreecommitdiffstats
path: root/13.0
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2010-10-21 09:16:16 +0000
committer Eric Hameleers <alien@slackware.com>2010-10-21 09:16:16 +0000
commit9b10c51dd9324b0e970e5b7dbd768e2919b43b05 (patch)
tree8f5fb75904cb3397af9ac811e4689da9a7096e18 /13.0
parent5077959db91b5ab089675a0c9c8c675197d2b65b (diff)
downloadmultilib-9b10c51dd9324b0e970e5b7dbd768e2919b43b05.tar.gz
multilib-9b10c51dd9324b0e970e5b7dbd768e2919b43b05.tar.xz
Add patch to fix the CVE-2010-3847 local root hole
Diffstat (limited to '13.0')
-rwxr-xr-x13.0/glibc/glibc-multilib.SlackBuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/13.0/glibc/glibc-multilib.SlackBuild b/13.0/glibc/glibc-multilib.SlackBuild
index 3277668..6b01d43 100755
--- a/13.0/glibc/glibc-multilib.SlackBuild
+++ b/13.0/glibc/glibc-multilib.SlackBuild
@@ -30,11 +30,18 @@
VERSION=${VERSION:-2.9}
CHECKOUT=${CHECKOUT:--20090316}
-BUILD=${BUILD:-3alien}
+BUILD=${BUILD:-4alien_slack13.0}
# $ARCH may be preset, otherwise i486 compatibility with i686 binary
# structuring is the Slackware default, since this is what gcc-3.2+
# requires for binary compatibility with previous releases.
-ARCH=${ARCH:-x86_64}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
CVSVER=${VERSION}${CHECKOUT}
@@ -123,6 +130,8 @@ apply_patches() {
# This reverts a patch that was made to glibc to fix "namespace leakage",
# which seems to cause some build failures (e.g. with conntrack):
zcat $CWD/glibc.revert.to.fix.build.breakages.diff.gz | patch -p1 --verbose || exit 1
+ # This fixes a security issue in glibc 2.12.1 and earlier:
+ zcat $CWD/glibc.CVE-2010-3847.diff.gz | patch -p1 --verbose || exit 1
if [ $BOOTSTRP -eq 1 ] ; then
# Multilib - Disable check for forced unwind (Patch from eglibc) since we
# do not have a multilib glibc yet to link to;
@@ -130,14 +139,14 @@ apply_patches() {
fi
# Update the timezone information.
( cd timezone
- tar xzf $CWD/tzdata2009d.tar.gz
+ tar xzf $CWD/tzdata?????.tar.gz
chown root:root *
mv yearistype.sh yearistype
chmod 644 *
chmod 755 yearistype
mkdir tzcode
cd tzcode
- tar xzf $CWD/tzcode2009d.tar.gz
+ tar xzf $CWD/tzcode?????.tar.gz
chown -R root:root .
chmod 644 *
cp -a *.c *.h ..