HomeFreeBSD

Add GNU glibc compatible secure_getenv

Description

Add GNU glibc compatible secure_getenv

Add mostly glibc and msl compatible secure_getenv. Return NULL if
issetugid() indicates the process is tainted, otherwise getenv(x). The
rational behind this is the fact that many Linux applications use this
function instead of getenv() as it's widely consider a, "best
practice".

Reviewed by: imp, mjg (feedback)
Pull Request: https://github.com/freebsd/freebsd-src/pull/686
Signed-off-by: Lucy Marsh <seafork@disroot.org>

Details

Provenance
lucy <seafork@disroot.org>Authored on Mar 13 2023, 10:01 PM
impCommitted on Mar 14 2023, 4:19 AM
Parents
rG4f7b3120bc60: arm64: Delete redundant badly formatted and capitalised comment
Branches
Unknown
Tags
Unknown