qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 0/2] linux-user: handle /proc/self/exe with execve() sysca


From: Laurent Vivier
Subject: Re: [PATCH v2 0/2] linux-user: handle /proc/self/exe with execve() syscall
Date: Thu, 27 Oct 2022 08:40:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1

Le 26/10/2022 à 17:25, Michael Tokarev a écrit :
27.09.2022 15:43, Laurent Vivier wrote:
Use exec_path to re-execute the binary from /proc/self/exe

Fix do_openat() that should not use execfd.

v2:
- don't use execfd as it can't be closed and is usable by the child

Why can't it be closed? I mean, how about O_CLOEXEC?

I tried O_CLOEXEC, but it seems the fd is closed before it is needed by execveat() to re-spawn the process, so it exits with an error (something like EBADF)

Thanks,
Laurent




reply via email to

[Prev in Thread] Current Thread [Next in Thread]