]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add secure_getenv() support
authorGreg Hudson <ghudson@mit.edu>
Wed, 24 Apr 2019 19:56:43 +0000 (15:56 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 30 Apr 2019 20:40:27 +0000 (16:40 -0400)
commitff71934f40afd4ae536638fa626fcd9ab36daf75
treeb7b6503714192d03dc7af801cb219b55fd573b06
parent2298e5c2ff1122bcaff715129f5b746e77c3f42a
Add secure_getenv() support

On systems with secure_getenv() (glibc 2.17+) use it directly.  For
the fallback implementation, check the current process uids and gids
in a library initializer, looking at the saved uid and gid where
possible.  Include a comment about more aggressive approaches to
detecting elevated privilege.

ticket: 8800 (new)
src/configure.ac
src/include/k5-platform.h
src/util/support/Makefile.in
src/util/support/secure_getenv.c [new file with mode: 0644]