fakechroot icon indicating copy to clipboard operation
fakechroot copied to clipboard

env escaping chroot

Open mangodan2003 opened this issue 5 years ago • 1 comments

I have a script (or set of scripts) that build system images using fakechroot. They suddenly started failing and i'm not sure what changed, but it seems to come down to:

root@host:/# ls -id /tmp 41960819 /tmp root@host:/# env ls -id /tmp 37365864 /tmp

Where the latter is causing ls to see the /tmp of the host environment. This problem is arising whilst installing grub-efi-amd64 which has a postinst script which tries to use ucf. ucf fails to find a tmp file as its being run via env and seeing the /tmp of the host system.

mangodan2003 avatar Apr 08 '19 16:04 mangodan2003

u r right

FeverKing avatar Oct 22 '20 17:10 FeverKing