start sanitizing the environment with chroot() and don't pass on TMPDIR

This commit is contained in:
Johannes 'josch' Schauer 2019-01-20 10:40:51 +01:00
parent 6f8bb8c977
commit 84b0b5061b
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1377,7 +1377,7 @@ sub setup {
# make sure that APT_CONFIG is not set when executing anything inside the
# chroot
my @chrootcmd = ('env', '--unset=APT_CONFIG');
my @chrootcmd = ('env', '--unset=APT_CONFIG', '--unset=TMPDIR');
if ($options->{mode} eq 'proot') {
push @chrootcmd, (
'proot',