Re: [PATCH v2 01/11] linux-user: handle /proc/self/exe for execve

2021-06-20 Thread Takashi Yamamoto
On Sun, Jun 20, 2021 at 11:14 PM Laurent Vivier wrote: > > Le 31/05/2021 à 07:50, YAMAMOTO Takashi a écrit : > > It seems somehow common to execve /proc/self/exe in docker > > or golang community these days. > > At least, moby "reexec" and runc "libcontainer" do that. > > > > Signed-off-by: YAMAMO

Re: [PATCH v2 02/11] linux-user: Fix the execfd case of /proc/self/exe open

2021-06-20 Thread Takashi Yamamoto
On Sun, Jun 20, 2021 at 11:16 PM Laurent Vivier wrote: > > Le 31/05/2021 à 07:50, YAMAMOTO Takashi a écrit : > > It's problematic to return AT_EXECFD as it is because the user app > > would close it. > > This patch opens it via /proc/self/fd instead. > > > > Signed-off-by: YAMAMOTO Takashi > > --

Re: [PATCH 0/5] linux-user changes to run docker

2021-05-30 Thread Takashi Yamamoto
On Thu, May 27, 2021 at 10:25 PM Alex Bennée wrote: > > > Takashi Yamamoto writes: > > > On Tue, May 25, 2021 at 8:22 AM Takashi Yamamoto > > wrote: > >> > >> On Tue, May 25, 2021 at 2:49 AM Alex Bennée wrote: > >> > > >> > >

Re: [PATCH 0/5] linux-user changes to run docker

2021-05-26 Thread Takashi Yamamoto
On Tue, May 25, 2021 at 8:22 AM Takashi Yamamoto wrote: > > On Tue, May 25, 2021 at 2:49 AM Alex Bennée wrote: > > > > > > YAMAMOTO Takashi writes: > > > > > These patches, along with a few more hacks [1] I didn't include > > > in this p

Re: [PATCH 2/5] linux-uesr: make exec_path realpath

2021-05-25 Thread Takashi Yamamoto
On Tue, May 25, 2021 at 7:59 AM Takashi Yamamoto wrote: > > On Mon, May 24, 2021 at 7:59 PM Alex Bennée wrote: > > > > > > YAMAMOTO Takashi writes: > > > > > Otherwise, it can be easily fooled by the user app using chdir(). > > > > > >

Re: [PATCH 5/5] linux-user: Implement pivot_root

2021-05-25 Thread Takashi Yamamoto
On Wed, May 26, 2021 at 5:22 AM Laurent Vivier wrote: > > Le 24/05/2021 à 06:54, YAMAMOTO Takashi a écrit : > > Used by runc. > > > > Signed-off-by: YAMAMOTO Takashi > > --- > > linux-user/syscall.c | 23 +++ > > 1 file changed, 23 insertions(+) > > > > diff --git a/linux-use

Re: [PATCH 0/5] linux-user changes to run docker

2021-05-24 Thread Takashi Yamamoto
On Tue, May 25, 2021 at 2:49 AM Alex Bennée wrote: > > > YAMAMOTO Takashi writes: > > > These patches, along with a few more hacks [1] I didn't include > > in this patchset, allowed me to run arm64 and armv7 version of > > dind image on amd64. > > > > [1] https://github.com/yamt/qemu/tree/linux-u

Re: [PATCH 2/5] linux-uesr: make exec_path realpath

2021-05-24 Thread Takashi Yamamoto
On Mon, May 24, 2021 at 7:59 PM Alex Bennée wrote: > > > YAMAMOTO Takashi writes: > > > Otherwise, it can be easily fooled by the user app using chdir(). > > > > Signed-off-by: YAMAMOTO Takashi > > --- > > linux-user/main.c | 6 +- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > >

Re: [PATCH 1/5] linux-user: handle /proc/self/exe for execve

2021-05-24 Thread Takashi Yamamoto
On Mon, May 24, 2021 at 7:53 PM Alex Bennée wrote: > > > YAMAMOTO Takashi writes: > > > It seems somehow common to execve /proc/self/exe in docker > > or golang community these days. > > At least, moby "reexec" and runc "libcontainer" do that. > > > > Signed-off-by: YAMAMOTO Takashi > > --- > >