linux-user: add option to intercept execve() sys
Hi Petros,
I'm sorry for the off-thread reply (I'm not subscribed at qemu-devel so please CC me in your replies).
I believe that we should modify the envp array in order to include the Qemu-related variables that a user might define:
Quoted 1 line
+ return
get_errno(execve(qemu_execve_path, new_argp, envp));
This will allow us to pass on QEMU-specific environment variables defined by the users down to every execve'd program (another option is to copy the qemu-specific arguments but the former is simpler).
Cheers,
Vasileios