From: Andreas Schwab Date: Thu, 9 Dec 2010 14:00:59 +0000 (+0100) Subject: Ignore origin of privileged program X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d14e6b09d60d52cc12f0396c3106b14e1bd0fe8f;p=thirdparty%2Fglibc.git Ignore origin of privileged program --- diff --git a/ChangeLog b/ChangeLog index 24ef9e1a95c..b8825204623 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-12-13 Andreas Schwab + + * elf/dl-object.c (_dl_new_object): Ignore origin of privileged + program. + 2010-10-22 Andreas Schwab * include/dlfcn.h (__RTLD_SECURE): Define. diff --git a/elf/dl-object.c b/elf/dl-object.c index 22a163560b4..7674d49c6e5 100644 --- a/elf/dl-object.c +++ b/elf/dl-object.c @@ -214,6 +214,9 @@ _dl_new_object (char *realname, const char *libname, int type, out: new->l_origin = origin; } + else if (INTUSE(__libc_enable_secure) && type == lt_executable) + /* The origin of a privileged program cannot be trusted. */ + new->l_origin = (char *) -1; return new; }