Re: [PATCH v2 2/2] linux-user: don't use AT_EXECFD in do_openat()

2022-10-21 Thread Laurent Vivier
Le 27/09/2022 à 14:43, Laurent Vivier a écrit : AT_EXECFD gives access to the binary file even if it is not readable (only executable). Moreover it can be opened with flags and mode that are not the ones provided by do_openat() caller. And it is not available because loader_exec() has closed it

[PATCH v2 2/2] linux-user: don't use AT_EXECFD in do_openat()

2022-09-27 Thread Laurent Vivier
AT_EXECFD gives access to the binary file even if it is not readable (only executable). Moreover it can be opened with flags and mode that are not the ones provided by do_openat() caller. And it is not available because loader_exec() has closed it. To avoid that, use only safe_openat() with the