All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] linux-user: look up executable in emulation dir for execve syscall
@ 2025-11-25 17:42 Andreas Schwab
  2026-01-23 14:32 ` Helge Deller
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2025-11-25 17:42 UTC (permalink / raw)
  To: qemu-devel; +Cc: laurent

Signed-off-by: Andreas Schwab <schwab@suse.de>
---
 linux-user/syscall.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index f7ca155679..e379ddb1b7 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -8972,6 +8972,7 @@ static int do_execv(CPUArchState *cpu_env, int dirfd,
     if (is_proc_myself(p, "exe")) {
         exe = exec_path;
     }
+    exe = path(exe);
     ret = is_execveat
         ? safe_execveat(dirfd, exe, argp, envp, flags)
         : safe_execve(exe, argp, envp);
-- 
2.52.0


-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-26  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-25 17:42 [PATCH] linux-user: look up executable in emulation dir for execve syscall Andreas Schwab
2026-01-23 14:32 ` Helge Deller
2026-01-26  9:08   ` Andreas Schwab

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.