diff options
author | Filipe Brandenburger <filbranden@google.com> | 2015-11-11 09:24:34 -0800 |
---|---|---|
committer | Filipe Brandenburger <filbranden@google.com> | 2015-11-11 09:24:34 -0800 |
commit | e1abca2ee42e5938ee1f2542c3eba9e70edb0be2 (patch) | |
tree | c0e4c0d255fe99cf7d79e1cde128915de986db3d /src/backlight | |
parent | 4c80d201ace0377312c27143afab04e9c9f1ee64 (diff) |
test-execute: Clarify interaction of PassEnvironment= and MANAGER_USER
@evverx brought up that test-execute runs under MANAGER_USER which
forwards all its environment variables to the services. It turns out it
only forwards those that were in the environment at the time of manager
creation, so this test was still working.
It was still possible to attack it by running something like:
$ sudo VAR1=a VAR2=b VAR3=c ./test-execute
Prevent that attack by unsetting the three variables explicitly before
creating the manager for the test case.
Also add comments explaining the interactions with MANAGER_USER and,
while it has some caveats, this tests are still valid in that context.
Tested by checking that the test running with the variables set from the
external environment will still pass.
Diffstat (limited to 'src/backlight')
0 files changed, 0 insertions, 0 deletions