Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/lib/libpthread Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/9d519ac4ee18
branches:  netbsd-8
changeset: 434254:9d519ac4ee18
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Aug 31 08:24:43 2017 +0000

description:
Pull up following revision(s) (requested by joerg in ticket #232):
        lib/libpthread/pthread.c: revision 1.149
Do not look at environmental variables for suid/guid binaries.

diffstat:

 lib/libpthread/pthread.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3fd45d3820eb -r 9d519ac4ee18 lib/libpthread/pthread.c
--- a/lib/libpthread/pthread.c  Thu Aug 31 08:18:08 2017 +0000
+++ b/lib/libpthread/pthread.c  Thu Aug 31 08:24:43 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread.c,v 1.147.8.1 2017/08/29 09:43:16 bouyer Exp $ */
+/*     $NetBSD: pthread.c,v 1.147.8.2 2017/08/31 08:24:43 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread.c,v 1.147.8.1 2017/08/29 09:43:16 bouyer Exp $");
+__RCSID("$NetBSD: pthread.c,v 1.147.8.2 2017/08/31 08:24:43 bouyer Exp $");
 
 #define        __EXPOSE_STACK  1
 
@@ -1366,6 +1366,9 @@
        extern char **environ;
        size_t l_name, offset;
 
+       if (issetugid())
+               return (NULL);
+
        l_name = strlen(name);
        for (offset = 0; environ[offset] != NULL; offset++) {
                if (strncmp(name, environ[offset], l_name) == 0 &&



Home | Main Index | Thread Index | Old Index