File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- Solves export of glibc 2.17 secure_getenv because we support down to 2.11
2-
3- Patches openssl 1.0.2's usage of secure_getenv from glibc 2.17 to instead
4- always use the fallback OPENSSL_issetugid(), which essentially does the
5- same thing on linux, with the only difference that the glibc version makes
6- decisions on startup, whereas the openssl version does the same check each
7- time the environment is read.
8-
9- glibc check: https://sourceware.org/git/?p=glibc.git;a=blob;f=elf/enbl-secure.c;h=9e47526bd3e444e1a19a8ea9fd310b6f47c4db52;hb=HEAD
10- glibc implementation: https://sourceware.org/git/?p=glibc.git;a=blob;f=stdlib/secure-getenv.c;h=a394eebcf794c1279d66e5bcb71d4b15725e6e5a;hb=HEAD
11-
12- openssl check: https://github.com/openssl/openssl/blob/OpenSSL_1_0_2u/crypto/uid.c
13-
14- This patch can be removed when glibc 2.17 is the minimum version supported
15-
16- Author: Patrick Lodder <patricklodder@users.noreply.github.com>
17-
181diff -dur a/crypto/getenv.c b/crypto/getenv.c
192--- a/crypto/getenv.c 2019-12-20 13:02:41.000000000 +0000
203+++ b/crypto/getenv.c 2021-09-20 03:02:04.125747397 +0000
@@ -34,4 +17,4 @@ diff -dur a/crypto/getenv.c b/crypto/getenv.c
3417 return NULL;
3518 return getenv(name);
3619- #endif
37- }
20+ }
You can’t perform that action at this time.
0 commit comments