diff options
author | 2005-03-31 02:02:55 +0000 | |
---|---|---|
committer | 2005-03-31 02:02:55 +0000 | |
commit | 6fb4cc1e016162dabc637650e34028c8eb287533 (patch) | |
tree | 05acc7f435e0aed687571201966d4c6654e0ad77 /sys-libs/uclibc/files | |
parent | Initial import into the tree. Final closure of bug #87337. Thanks to exposu... (diff) | |
download | historical-6fb4cc1e016162dabc637650e34028c8eb287533.tar.gz historical-6fb4cc1e016162dabc637650e34028c8eb287533.tar.bz2 historical-6fb4cc1e016162dabc637650e34028c8eb287533.zip |
old
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'sys-libs/uclibc/files')
11 files changed, 0 insertions, 377 deletions
diff --git a/sys-libs/uclibc/files/0.9.26-r8-cvs.patch b/sys-libs/uclibc/files/0.9.26-r8-cvs.patch deleted file mode 100644 index 9ef2375912f6..000000000000 --- a/sys-libs/uclibc/files/0.9.26-r8-cvs.patch +++ /dev/null @@ -1,40 +0,0 @@ -Fix building with linux26-headers. - -http://bugs.gentoo.org/show_bug.cgi?id=73583 - -Index: include/features.h -=================================================================== -RCS file: /var/cvs/uClibc/include/features.h,v -retrieving revision 1.60 -retrieving revision 1.61 -diff -u -r1.60 -r1.61 ---- include/features.h 27 Oct 2004 07:26:21 -0000 1.60 -+++ include/features.h 11 Jan 2005 17:02:22 -0000 1.61 -@@ -417,6 +417,9 @@ - #ifndef __LINUX_COMPILER_H - #define __LINUX_COMPILER_H - #endif -+#ifndef __cast__ -+#define __cast__(_to) -+#endif - - /* Arrange to hide uClibc internals */ - #if __GNUC_PREREQ (3, 3) -Index: libc/sysdeps/linux/common/ssp.c -=================================================================== -RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/ssp.c,v -retrieving revision 1.5 -retrieving revision 1.6 -diff -u -r1.5 -r1.6 ---- libc/sysdeps/linux/common/ssp.c 25 Nov 2004 19:10:39 -0000 1.5 -+++ libc/sysdeps/linux/common/ssp.c 11 Jan 2005 17:01:53 -0000 1.6 -@@ -29,7 +29,9 @@ - #include <sys/un.h> - #include <sys/syslog.h> - #include <sys/time.h> -+#ifdef HAVE_DEV_ERANDOM - #include <sys/sysctl.h> -+#endif - - #ifdef __PROPOLICE_BLOCK_SEGV__ - #define SSP_SIGTYPE SIGSEGV diff --git a/sys-libs/uclibc/files/0.9.26/arm-ucontext.patch b/sys-libs/uclibc/files/0.9.26/arm-ucontext.patch deleted file mode 100644 index 78b8d4cc04e4..000000000000 --- a/sys-libs/uclibc/files/0.9.26/arm-ucontext.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- libc/sysdeps/linux/arm/sys/ucontext.h.orig 2004-08-06 12:08:48.234295048 -0400 -+++ libc/sysdeps/linux/arm/sys/ucontext.h 2004-08-06 12:09:11.123815312 -0400 -@@ -24,6 +24,7 @@ - #include <features.h> - #include <signal.h> - #include <sys/procfs.h> -+#include <bits/sigcontext.h> - - typedef int greg_t; - diff --git a/sys-libs/uclibc/files/0.9.26/ssp.c b/sys-libs/uclibc/files/0.9.26/ssp.c deleted file mode 100644 index 0eac14f230fb..000000000000 --- a/sys-libs/uclibc/files/0.9.26/ssp.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/files/0.9.26/ssp.c,v 1.1 2005/01/12 03:51:45 vapier Exp $ - * - * This is a modified version of Hiroaki Etoh's stack smashing routines - * implemented for glibc. - * - * The following people have contributed input to this code. - * Ned Ludd - <solar[@]gentoo.org> - * Alexander Gabert - <pappy[@]gentoo.org> - * The PaX Team - <pageexec[@]freemail.hu> - * Peter S. Mazinger - <ps.m[@]gmx.net> - * Yoann Vandoorselaere - <yoann[@]prelude-ids.org> - * Robert Connolly - <robert[@]linuxfromscratch.org> - * Cory Visi <cory@visi.name> - * - */ - -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - -#include <stdio.h> -#include <string.h> -#include <fcntl.h> -#include <unistd.h> -#include <signal.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <sys/un.h> -#include <sys/syslog.h> -#include <sys/time.h> -#include <sys/sysctl.h> - -#ifndef _PATH_LOG -#define _PATH_LOG "/dev/log" -#endif - -#ifdef __PROPOLICE_BLOCK_SEGV__ -#define SSP_SIGTYPE SIGSEGV -#elif __PROPOLICE_BLOCK_KILL__ -#define SSP_SIGTYPE SIGKILL -#else -#define SSP_SIGTYPE SIGABRT -#endif - -unsigned long __guard = 0UL; - -void -__guard_setup (void) -{ - size_t size; -#ifdef HAVE_DEV_ERANDOM - int mib[3]; -#endif - - if (__guard != 0UL) - return; - -#ifndef __SSP_QUICK_CANARY__ -#ifdef HAVE_DEV_ERANDOM - /* Random is another depth in Linux, hence an array of 3. */ - mib[0] = CTL_KERN; - mib[1] = KERN_RANDOM; - mib[2] = RANDOM_ERANDOM; - - size = sizeof (unsigned long); - if (__sysctl (mib, 3, &__guard, &size, NULL, 0) != (-1)) - if (__guard != 0UL) - return; -#endif - /* - * Attempt to open kernel pseudo random device if one exists before - * opening urandom to avoid system entropy depletion. - */ - { - int fd; -#ifdef HAVE_DEV_ERANDOM - if ((fd = open ("/dev/erandom", O_RDONLY)) == (-1)) -#endif - fd = open ("/dev/urandom", O_RDONLY); - if (fd != (-1)) - { - size = read (fd, (char *) &__guard, sizeof (__guard)); - close (fd); - if (size == sizeof (__guard)) - return; - } - } -#endif - - /* If sysctl was unsuccessful, use the "terminator canary". */ - __guard = 0xFF0A0D00UL; - - { - /* Everything failed? Or we are using a weakened model of the - * terminator canary */ - struct timeval tv; - - gettimeofday (&tv, NULL); - __guard ^= tv.tv_usec ^ tv.tv_sec; - } -} - -void -__stack_smash_handler (char func[], int damaged) -{ - struct sockaddr_un sock; /* AF_UNIX address of local logger */ - struct sigaction sa; - const char message[] = ": stack smashing attack in function "; - int bufsz, len, log; - char buf[512]; - extern char *__progname; - - sigset_t mask; - sigfillset (&mask); - - sigdelset (&mask, SSP_SIGTYPE); /* Block all signal handlers */ - sigprocmask (SIG_BLOCK, &mask, NULL); /* except SIGABRT */ - - bufsz = sizeof (buf); - strcpy (buf, "<2>"); - len = 3; - - strncat (buf, __progname, sizeof (buf) - 4); - len = strlen (buf); - - if (bufsz > len) - { - strncat (buf, message, bufsz - len - 1); - len = strlen (buf); - } - if (bufsz > len) - { - strncat (buf, func, bufsz - len - 1); - len = strlen (buf); - } - - /* print error message */ - write (STDERR_FILENO, buf + 3, len - 3); - write (STDERR_FILENO, "()\n", 3); - if ((log = socket (AF_UNIX, SOCK_DGRAM, 0)) != -1) - { - /* Send "found" message to the "/dev/log" path */ - sock.sun_family = AF_UNIX; - (void) strncpy (sock.sun_path, _PATH_LOG, sizeof (sock.sun_path) - 1); - sock.sun_path[sizeof (sock.sun_path) - 1] = '\0'; - sendto (log, buf, len, 0, (struct sockaddr *) &sock, sizeof (sock)); - } - - /* Make sure the default handler is associated with the our signal handler */ - - memset (&sa, 0, sizeof (struct sigaction)); - sigfillset (&sa.sa_mask); /* Block all signals */ - sa.sa_flags = 0; - sa.sa_handler = SIG_DFL; - sigaction (SSP_SIGTYPE, &sa, NULL); - (void) kill (getpid (), SSP_SIGTYPE); - _exit (127); -} diff --git a/sys-libs/uclibc/files/0.9.26/uClibc-20040921-ldso-unsecvars.patch b/sys-libs/uclibc/files/0.9.26/uClibc-20040921-ldso-unsecvars.patch deleted file mode 100644 index 5e58588e7e80..000000000000 --- a/sys-libs/uclibc/files/0.9.26/uClibc-20040921-ldso-unsecvars.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- ldso/ldso/ldso.c 8 Sep 2004 09:43:24 -0000 1.121 -+++ ldso/ldso/ldso.c 21 Sep 2004 05:33:40 -0000 -@@ -31,6 +31,7 @@ - - - #include "ldso.h" -+#include "unsecvars.h" - - #define ALLOW_ZERO_PLTGOT - -@@ -325,11 +326,21 @@ void _dl_get_ready_to_run(struct elf_res - _dl_preload = _dl_getenv("LD_PRELOAD", envp); - _dl_library_path = _dl_getenv("LD_LIBRARY_PATH", envp); - } else { -+ static const char unsecure_envvars[] = -+#ifdef EXTRA_UNSECURE_ENVVARS -+ EXTRA_UNSECURE_ENVVARS -+#endif -+ UNSECURE_ENVVARS; -+ const char *nextp; - _dl_secure = 1; -- _dl_preload = _dl_getenv("LD_PRELOAD", envp); -- _dl_unsetenv("LD_AOUT_PRELOAD", envp); -- _dl_unsetenv("LD_LIBRARY_PATH", envp); -- _dl_unsetenv("LD_AOUT_LIBRARY_PATH", envp); -+ -+ nextp = unsecure_envvars; -+ do { -+ _dl_unsetenv (nextp, envp); -+ /* We could use rawmemchr but this need not be fast. */ -+ nextp = (char *) _dl_strchr(nextp, '\0') + 1; -+ } while (*nextp != '\0'); -+ _dl_preload = NULL; - _dl_library_path = NULL; - } - } diff --git a/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-arm-dl-sysdep.patch b/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-arm-dl-sysdep.patch deleted file mode 100644 index a1b50c0aa5aa..000000000000 --- a/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-arm-dl-sysdep.patch +++ /dev/null @@ -1,23 +0,0 @@ -Index: ldso/ldso/arm/dl-sysdep.h -=================================================================== -RCS file: /var/cvs/uClibc/ldso/ldso/arm/dl-sysdep.h,v -retrieving revision 1.9 -diff -u -b -B -w -p -r1.9 dl-sysdep.h ---- ldso/ldso/arm/dl-sysdep.h 17 Feb 2004 10:55:54 -0000 1.9 -+++ ldso/ldso/arm/dl-sysdep.h 23 Jun 2004 17:57:35 -0000 -@@ -5,6 +5,9 @@ - * Copyright (C) 2000-2004 by Erik Andersen <andersen@codpoet.org> - */ - -+#ifndef __DL_SYSDEP_H__ -+#define __DL_SYSDEP_H__ -+ - /* Define this if the system uses RELOCA. */ - #undef ELF_USES_RELOCA - -@@ -66,3 +69,5 @@ unsigned long _dl_linux_resolver(struct - #define elf_machine_type_class(type) \ - ((((type) == R_ARM_JUMP_SLOT) * ELF_RTYPE_CLASS_PLT) \ - | (((type) == R_ARM_COPY) * ELF_RTYPE_CLASS_COPY)) -+ -+#endif /* __DL_SYSDEP_H__ */ diff --git a/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-ldso-cache.patch b/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-ldso-cache.patch deleted file mode 100644 index 40867d15152b..000000000000 --- a/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-ldso-cache.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- ldso/ldso/dl-elf.c.orig 2004-08-09 19:01:02 +0000 -+++ ldso/ldso/dl-elf.c 2004-08-09 19:00:40 +0000 -@@ -329,6 +329,7 @@ - #endif - for (i = 0; i < header->nlibs; i++) { - if ((libent[i].flags == LIB_ELF || -+ libent[i].flags == LIB_ELF_LIBC0 || - libent[i].flags == LIB_ELF_LIBC5) && - _dl_strcmp(libname, strs + libent[i].sooffset) == 0 && - (tpnt1 = _dl_load_elf_shared_library(secure, diff --git a/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-resolve-segfault.patch b/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-resolve-segfault.patch deleted file mode 100644 index 2b9b1ab1dc66..000000000000 --- a/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-resolve-segfault.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- libc/inet/resolv.c.orig 2004-08-09 14:04:58 +0000 -+++ libc/inet/resolv.c 2004-08-09 14:07:09 +0000 -@@ -1846,6 +1846,7 @@ - { - struct in_addr *in; - struct in_addr **addr_list; -+ char **alias; - unsigned char *packet; - struct resolv_answer a; - int i; -@@ -1899,17 +1900,27 @@ - - addr_list[0] = in; - addr_list[1] = 0; -- -+ -+ if (buflen < sizeof(char *)*(ALIAS_DIM)) -+ return ERANGE; -+ alias=(char **)buf; -+ buf+=sizeof(char **)*(ALIAS_DIM); -+ buflen-=sizeof(char **)*(ALIAS_DIM); -+ - if (buflen<256) - return ERANGE; - strncpy(buf, name, buflen); - -+ alias[0] = buf; -+ alias[1] = NULL; -+ - /* First check if this is already an address */ - if (inet_aton(name, in)) { - result_buf->h_name = buf; - result_buf->h_addrtype = AF_INET; - result_buf->h_length = sizeof(*in); - result_buf->h_addr_list = (char **) addr_list; -+ result_buf->h_aliases = alias; - *result=result_buf; - *h_errnop = NETDB_SUCCESS; - return NETDB_SUCCESS; -@@ -1954,6 +1965,7 @@ - result_buf->h_addrtype = AF_INET; - result_buf->h_length = sizeof(*in); - result_buf->h_addr_list = (char **) addr_list; -+ result_buf->h_aliases = alias; /* TODO: generate the full list */ - free(packet); - break; - } else { diff --git a/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch b/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch deleted file mode 100644 index b3619d079ece..000000000000 --- a/sys-libs/uclibc/files/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- ./libc/sysdeps/linux/common/ssp.c.old 2004-05-17 06:46:31.000000000 -0400 -+++ ./libc/sysdeps/linux/common/ssp.c 2004-05-17 07:46:42.264773000 -0400 -@@ -44,9 +44,15 @@ - #define SSP_SIGTYPE SIGABRT - #endif - -+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) -+#define __attribute_used__ __attribute__((__used__)) -+#else -+#define __attribute_used__ __attribute__((__unused__)) -+#endif -+ - unsigned long __guard = 0UL; - --void -+__attribute_used__ void __attribute__ ((visibility ("default"))) - __guard_setup (void) - { - size_t size; diff --git a/sys-libs/uclibc/files/0.9.26/unsecvars.h b/sys-libs/uclibc/files/0.9.26/unsecvars.h deleted file mode 100644 index 5e060a6516dc..000000000000 --- a/sys-libs/uclibc/files/0.9.26/unsecvars.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Environment variable to be removed for SUID programs. The names are all - * stuffed in a single string which means they have to be terminated with a - * '\0' explicitly. - */ - -#define UNSECURE_ENVVARS \ - "LD_AOUT_PRELOAD\0" \ - "LD_AOUT_LIBRARY_PATH\0" \ - "LD_PRELOAD\0" \ - "LD_LIBRARY_PATH\0" \ - "LD_DEBUG\0" \ - "LD_DEBUG_OUTPUT\0" \ - "HOSTALIASES\0" \ - "LOCALDOMAIN\0" \ - "RES_OPTIONS\0" \ - "TMPDIR\0" - -/* - * These environment variables are defined by glibc but ignored in - * uClibc, but may very well have an equivalent in uClibc. - * - * MALLOC_TRACE, RESOLV_HOST_CONF, TZDIR, GCONV_PATH, LD_USE_LOAD_BIAS, - * LD_PROFILE, LD_ORIGIN_PATH, LOCPATH, NLSPATH - */ - diff --git a/sys-libs/uclibc/files/digest-uclibc-0.9.26-r7 b/sys-libs/uclibc/files/digest-uclibc-0.9.26-r7 deleted file mode 100644 index 355f8d702bae..000000000000 --- a/sys-libs/uclibc/files/digest-uclibc-0.9.26-r7 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 7212713c432dd0de6ec2140c2a6212e4 uClibc-0.9.26.tar.bz2 1604543 -MD5 1c082d43f02e7fa199fe724469111d88 uClibc-0.9.26-cvs-update-20040808.patch.bz2 345344 -MD5 b7820c6b79f02d2d07a7ac75abfe90a5 uClibc-0.9.26-patches-1.1.tar.bz2 7162 diff --git a/sys-libs/uclibc/files/digest-uclibc-0.9.26-r8 b/sys-libs/uclibc/files/digest-uclibc-0.9.26-r8 deleted file mode 100644 index d630ae20babd..000000000000 --- a/sys-libs/uclibc/files/digest-uclibc-0.9.26-r8 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 7212713c432dd0de6ec2140c2a6212e4 uClibc-0.9.26.tar.bz2 1604543 -MD5 27f9c3067674f1f479a4ea6491c7e63b uClibc-0.9.26-cvs-update-20041209.patch.bz2 403987 -MD5 87c26182b2254e65682408444adb9e90 uClibc-0.9.26-patches-1.4.tar.bz2 35502 |