From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id E33923857029; Fri, 6 Oct 2023 14:28:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E33923857029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696602508; bh=6YQ/LCCX5pscI5wTiG6XytesWnJK7mWMzVlETVtLRVI=; h=From:To:Subject:Date:From; b=Aw/9reWSBC89ApjEloy0uAFVXTc2UUU2/QNKN1r7GnZkvO88Y8LaPbfhm81bB1cJ3 GtrV8LnvaYw/BXpcKndzsPICPBez1t8GIjXsbaDWAHrAHaqLlxz4e310BE/0u5pwFs QYO+CJ/Qo41wkkJX68ODKbAfBAYnpDr8eBSnBeXk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/tunables] elf: Add GLIBC_TUNABLES to unsecvars X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/tunables X-Git-Oldrev: db4c3b6d2e7048e36008b16c7ba9f7b0b78d9a42 X-Git-Newrev: 3552e1dc2b6ba98a718b3f050e9cbfb9abda1768 Message-Id: <20231006142828.E33923857029@sourceware.org> Date: Fri, 6 Oct 2023 14:28:28 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3552e1dc2b6ba98a718b3f050e9cbfb9abda1768 commit 3552e1dc2b6ba98a718b3f050e9cbfb9abda1768 Author: Adhemerval Zanella Date: Thu Oct 5 10:09:19 2023 -0300 elf: Add GLIBC_TUNABLES to unsecvars TODO Diff: --- elf/tst-env-setuid-tunables.c | 11 +++-------- sysdeps/generic/unsecvars.h | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/elf/tst-env-setuid-tunables.c b/elf/tst-env-setuid-tunables.c index 1716c97088..70e9ed78e8 100644 --- a/elf/tst-env-setuid-tunables.c +++ b/elf/tst-env-setuid-tunables.c @@ -64,15 +64,10 @@ test_child (int off) printf (" [%d] GLIBC_TUNABLES is %s\n", off, val); fflush (stdout); - if (val == NULL) - printf (" [%d] GLIBC_TUNABLES environment variable absent\n", off); + if (val != NULL) + printf (" [%d] Unexpected GLIBC_TUNABLES VALUE %s\n", off, val); else - { - if (strcmp (val, teststrings[off]) != 0) - printf (" [%d] Unexpected GLIBC_TUNABLES VALUE %s\n", off, val); - else - ret = 0; - } + ret = 0; fflush (stdout); int32_t check = TUNABLE_GET_FULL (glibc, malloc, check, int32_t, NULL); diff --git a/sysdeps/generic/unsecvars.h b/sysdeps/generic/unsecvars.h index ca70e2e989..f7ebed60e5 100644 --- a/sysdeps/generic/unsecvars.h +++ b/sysdeps/generic/unsecvars.h @@ -4,6 +4,7 @@ #define UNSECURE_ENVVARS \ "GCONV_PATH\0" \ "GETCONF_DIR\0" \ + "GLIBC_TUNABLES\0" \ "HOSTALIASES\0" \ "LD_AUDIT\0" \ "LD_DEBUG\0" \