Magellan Linux

Contents of /trunk/glibc/patches/glibc-2.5.0-hwcap-mask-secure.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 283 - (show annotations) (download)
Tue Jul 24 07:08:30 2007 UTC (16 years, 9 months ago) by niro
File size: 985 byte(s)
glibc-2.5.0-r7; added a security fix for CVS-2007-3508

1 diff -ruNp elf/rtld.c elf/rtld.c
2 --- elf/rtld.c 2007-07-01 16:21:55.000000000 +0100
3 +++ elf/rtld.c 2007-07-01 16:20:38.000000000 +0100
4 @@ -2587,7 +2587,8 @@ process_envvars (enum mode *modep)
5
6 case 10:
7 /* Mask for the important hardware capabilities. */
8 - if (memcmp (envline, "HWCAP_MASK", 10) == 0)
9 + if (!INTUSE(__libc_enable_secure)
10 + && memcmp (envline, "HWCAP_MASK", 10) == 0)
11 GLRO(dl_hwcap_mask) = __strtoul_internal (&envline[11], NULL,
12 0, 0);
13 break;
14 diff -ruNp sysdeps/generic/unsecvars.h sysdeps/generic/unsecvars.h
15 --- sysdeps/generic/unsecvars.h 2005-01-06 22:40:19.000000000 +0000
16 +++ sysdeps/generic/unsecvars.h 2007-07-01 16:21:21.000000000 +0100
17 @@ -9,6 +9,7 @@
18 "LD_DEBUG\0" \
19 "LD_DEBUG_OUTPUT\0" \
20 "LD_DYNAMIC_WEAK\0" \
21 + "LD_HWCAP_MASK\0" \
22 "LD_LIBRARY_PATH\0" \
23 "LD_ORIGIN_PATH\0" \
24 "LD_PRELOAD\0" \