diff options
author | Mitsutoshi Aoe <maoe@foldr.in> | 2018-10-14 20:23:21 +0200 |
---|---|---|
committer | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2018-10-14 20:23:21 +0200 |
commit | 68a747c702d2432cc90d2a79a6aba0e67ac3e2c0 (patch) | |
tree | 342c75d43e6bf3e45da70d2e9c690bb59991085a /rts | |
parent | fc4c3df046d7059f67c064dc755e9e40961c80f6 (diff) | |
download | haskell-68a747c702d2432cc90d2a79a6aba0e67ac3e2c0.tar.gz |
rts: Stop tracing environment variables (fixes #15371)
Summary:
This tracing may cause a security issue as some external tools
out there expects user to set credentials in environment variables.
Reviewers: bgamari, erikd, simonmar, monoidal
Reviewed By: monoidal
Subscribers: tdammers, rwbarton, carter
GHC Trac Issues: #15371
Differential Revision: https://phabricator.haskell.org/D5187
Diffstat (limited to 'rts')
-rw-r--r-- | rts/Trace.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rts/Trace.c b/rts/Trace.c index 5b485c4d0f..5abd1d9596 100644 --- a/rts/Trace.c +++ b/rts/Trace.c @@ -478,16 +478,6 @@ void traceOSProcessInfo_(void) { argc, argv); } } - { - int envc = 0; char **envv; - getProgEnvv(&envc, &envv); - if (envc != 0) { - postCapsetVecEvent(EVENT_PROGRAM_ENV, - CAPSET_OSPROCESS_DEFAULT, - envc, envv); - } - freeProgEnvv(envc, envv); - } } } |