summaryrefslogtreecommitdiff
path: root/libexec/ld.so/loader.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-05-30 01:33:06 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-05-30 01:33:06 +0000
commit6cb420f95789cfbaef9617285a433c8b56e170f4 (patch)
tree5bb2aaf16dad3f74e2b982406bafdaf04b9d75d7 /libexec/ld.so/loader.c
parente0412874e2e423e326125c2e936d4d27d7f2e87b (diff)
zap LD_NORANDOM on issetugid() binaries.
Diffstat (limited to 'libexec/ld.so/loader.c')
-rw-r--r--libexec/ld.so/loader.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c
index 37b83f9fc7d..820488c56e0 100644
--- a/libexec/ld.so/loader.c
+++ b/libexec/ld.so/loader.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: loader.c,v 1.56 2003/05/30 01:13:53 drahn Exp $ */
+/* $OpenBSD: loader.c,v 1.57 2003/05/30 01:33:05 drahn Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -173,6 +173,10 @@ _dl_boot(const char **argv, char **envp, const long loff, long *dl_data)
_dl_debug = NULL;
_dl_unsetenv("LD_DEBUG", envp);
}
+ if (_dl_norandom) {
+ _dl_norandom = NULL;
+ _dl_unsetenv("LD_NORANDOM", envp);
+ }
}
_dl_progname = argv[0];