From 84b0b5061b849fb22e2f3fc8c06a39f8b5e6b611 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sun, 20 Jan 2019 10:40:51 +0100 Subject: [PATCH] start sanitizing the environment with chroot() and don't pass on TMPDIR --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index c396f02..7050c46 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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',