public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/tunables] elf: Add GLIBC_TUNABLES to unsecvars
@ 2023-10-06 14:28 Adhemerval Zanella
0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2023-10-06 14:28 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3552e1dc2b6ba98a718b3f050e9cbfb9abda1768
commit 3552e1dc2b6ba98a718b3f050e9cbfb9abda1768
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
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" \
^ permalink raw reply [flat|nested] 2+ messages in thread
* [glibc/azanella/tunables] elf: Add GLIBC_TUNABLES to unsecvars
@ 2023-10-05 13:13 Adhemerval Zanella
0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2023-10-05 13:13 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3552e1dc2b6ba98a718b3f050e9cbfb9abda1768
commit 3552e1dc2b6ba98a718b3f050e9cbfb9abda1768
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
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" \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-06 14:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-06 14:28 [glibc/azanella/tunables] elf: Add GLIBC_TUNABLES to unsecvars Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2023-10-05 13:13 Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).