[1584] in linux-security and linux-alert archive
[linux-security] Re: URGENT: Update to ld.so advisory
daemon@ATHENA.MIT.EDU (Daniel Pewzner)
Sat Jul 19 00:59:09 1997
Date: Fri, 18 Jul 1997 19:28:43 -0700 (PDT)
From: Daniel Pewzner <vegi@eskimo.com>
To: linux-security@redhat.com
Resent-From: linux-security@redhat.com
Reply-To: linux-security@redhat.com
The patch supplied with the advisory didn't quite work against 1.9.2 or
1.8.10. I couldn't compile ld.so. I've compiled a lot of programs against
libc-5.4.23 that I believe wont work with an older libc.
The patch was for ld.so-1.7.4 while I believe I need at least 1.8.1. I
made the following changes, but really don't know what I'm doing. Would
someone please verify if this is OK to do? This included patch is against
ld.so-1.9.2 AFTER the advisory patch was applied. Thanks very much, Dan
--- ld-so/ld.so.c-1.9.2patched Fri Jul 18 19:16:54 1997
+++ ld-so/ld.so.c Fri Jul 18 19:18:15 1997
@@ -245,7 +245,7 @@
save_mapinfo(mapinfo);
#endif
argv0 = va_arg(ap, char *);
- argv0 = arg_remap(argv0);
+ argv0 = argv_remap(argv0);
__environ = va_arg(ap, char **);
__SHARED_LIBRARIES__ = va_arg(ap, struct libentry **);
_SHARABLE_CONFLICTS__ = va_arg(ap, struct fixuplist *);
@@ -367,7 +367,7 @@
{
if(nlibs==11)
{
- fdprintf(2, "%s: too many preloads\n",argv[0]);
+ fdprintf(2, "%s: too many preloads\n",argv0);
exit(EXIT_FATAL);
}
libs[nlibs] = alloca(strlen(buffer)+1);