]> git.pld-linux.org Git - packages/glibc.git/blame - glibc-origin.patch
- missing patch
[packages/glibc.git] / glibc-origin.patch
CommitLineData
dd81d706
AM
1From d14e6b09d60d52cc12f0396c3106b14e1bd0fe8f Mon Sep 17 00:00:00 2001
2From: Andreas Schwab <schwab@redhat.com>
3Date: Thu, 9 Dec 2010 15:00:59 +0100
4Subject: [PATCH 1/1] Ignore origin of privileged program
f0e0dfc9 5
dd81d706
AM
6---
7 ChangeLog | 5 +++++
8 elf/dl-object.c | 3 +++
9 2 files changed, 8 insertions(+), 0 deletions(-)
10
11diff --git a/elf/dl-object.c b/elf/dl-object.c
12index 22a1635..7674d49 100644
13--- a/elf/dl-object.c
14+++ b/elf/dl-object.c
15@@ -214,6 +214,9 @@ _dl_new_object (char *realname, const char *libname, int type,
16 out:
17 new->l_origin = origin;
18 }
19+ else if (INTUSE(__libc_enable_secure) && type == lt_executable)
20+ /* The origin of a privileged program cannot be trusted. */
21+ new->l_origin = (char *) -1;
22
23 return new;
24 }
25--
261.7.2
This page took 0.034465 seconds and 4 git commands to generate.