Re: [PATCH] linux-user: add option to chroot before emulation

2020-12-08 Thread Laurent Vivier
Le 08/12/2020 à 17:04, Matteo Croce a écrit : > On Tue, Dec 8, 2020 at 9:21 AM Laurent Vivier wrote: >> >> Le 08/12/2020 à 01:17, Matteo Croce a écrit : >>> From: Matteo Croce >>> >>> Add a '-c' option which does a chroot() just before starting the >>> emulation. This is useful when the static QE

Re: [PATCH] linux-user: add option to chroot before emulation

2020-12-08 Thread Matteo Croce
On Tue, Dec 8, 2020 at 9:21 AM Laurent Vivier wrote: > > Le 08/12/2020 à 01:17, Matteo Croce a écrit : > > From: Matteo Croce > > > > Add a '-c' option which does a chroot() just before starting the > > emulation. This is useful when the static QEMU user binary can't > > be copied into the target

Re: [PATCH] linux-user: add option to chroot before emulation

2020-12-08 Thread Laurent Vivier
Le 08/12/2020 à 01:17, Matteo Croce a écrit : > From: Matteo Croce > > Add a '-c' option which does a chroot() just before starting the > emulation. This is useful when the static QEMU user binary can't > be copied into the target root filesystem, e.g. if it's readonly. Did you try to use the bi

Re: [PATCH] linux-user: add option to chroot before emulation

2020-12-07 Thread no-reply
: add option to chroot before emulation === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT

[PATCH] linux-user: add option to chroot before emulation

2020-12-07 Thread Matteo Croce
From: Matteo Croce Add a '-c' option which does a chroot() just before starting the emulation. This is useful when the static QEMU user binary can't be copied into the target root filesystem, e.g. if it's readonly. Move some code which accesses /proc/sys/vm/mmap_min_addr before the chroot, other