summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorKarel Zak2018-08-10 10:49:15 +0200
committerKarel Zak2018-08-15 13:03:21 +0200
commit75efef98d4ca2281bd4f8d1a1ddf8805bb024984 (patch)
tree3fed4f5aad4fb00fdf58ded417a70cb9171bc74a /configure.ac
parentbuild-sys: fix typo in man install (diff)
downloadkernel-qcow2-util-linux-75efef98d4ca2281bd4f8d1a1ddf8805bb024984.tar.gz
kernel-qcow2-util-linux-75efef98d4ca2281bd4f8d1a1ddf8805bb024984.tar.xz
kernel-qcow2-util-linux-75efef98d4ca2281bd4f8d1a1ddf8805bb024984.zip
su: add --whitelist-environment
* usable with --login to whitelist specified environment variables * the list is ignored for the core variables like HOME, SHELL, USER, LOGNAME and PATH (su --login always resets these variables) Note that su(1) requires password and after successful authentication user has full control over the session, so he can set arbitrary environment variables. The whitelist makes things more user friendly only. The patch removes unnecessary optimization when allocate environ[]. It seems better to keep all in glibc hands and just reset the environment array only. Addresses: https://github.com/karelzak/util-linux/issues/221 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a41ca7689..995d1d70e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -454,6 +454,7 @@ AC_CHECK_DECL([SO_PASSCRED],
#include <sys/socket.h>])
AC_CHECK_FUNCS([ \
+ clearenv \
__fpurge \
fpurge \
__fpending \