1 2 3 4 5 6 7
#include <stdlib.h> #include <unistd.h> char *secure_getenv(const char *name) { if (issetugid()) return NULL; return getenv(name); }