Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1662)

Issue 2867843002: vpython: Forcefully clear PYTHON* environment. (Closed)

Created:
3 years, 7 months ago by dnj
Modified:
3 years, 7 months ago
Reviewers:
iannucci
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

vpython: Forcefully clear PYTHON* environment. Forcefully remove PYTHONPATH and PYTHONHOME from the environment of the executed Python processes. This prevents a situation where "vpython" runs an isolated Python intepreter, but that Python interpreter runs a subcommand sans isolation flags that then uses the propagated PYTHON* environment. BUG=None TEST=None R=iannucci@chromium.org Review-Url: https://codereview.chromium.org/2867843002 Committed: https://github.com/luci/luci-go/commit/5a6585763abfb7a994ab2488a0155efe94bdc473

Patch Set 1 #

Total comments: 2

Patch Set 2 : block user site too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M vpython/run.go View 1 1 chunk +13 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 9 (4 generated)
dnj
PTAL
3 years, 7 months ago (2017-05-08 18:56:34 UTC) #1
iannucci
lgtm https://codereview.chromium.org/2867843002/diff/1/vpython/run.go File vpython/run.go (right): https://codereview.chromium.org/2867843002/diff/1/vpython/run.go#newcode75 vpython/run.go:75: e.Remove("PYTHONHOME") what about site path stuff? or do ...
3 years, 7 months ago (2017-05-08 18:59:08 UTC) #2
dnj
https://codereview.chromium.org/2867843002/diff/1/vpython/run.go File vpython/run.go (right): https://codereview.chromium.org/2867843002/diff/1/vpython/run.go#newcode75 vpython/run.go:75: e.Remove("PYTHONHOME") On 2017/05/08 18:59:08, iannucci wrote: > what about ...
3 years, 7 months ago (2017-05-08 19:03:07 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2867843002/20001
3 years, 7 months ago (2017-05-08 19:13:41 UTC) #6
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 19:20:56 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://github.com/luci/luci-go/commit/5a6585763abfb7a994ab2488a0155efe94bdc473

Powered by Google App Engine
This is Rietveld 408576698