Thread (11 messages) flat view 11 messages, 5 authors, 2021-03-27

Re: [PATCH 2/4] exec: remove compat_do_execve

From: Sergei Shtylyov <hidden>
Date: 2021-03-27 19:57:52
Also in: linux-arm-kernel, linux-fsdevel, linux-mips, linux-s390, linuxppc-dev, lkml, sparclinux

On 3/26/21 5:38 PM, Christoph Hellwig wrote:
Just call compat_do_execve instead.
   compat_do_execveat(), maybe?
quoted hunk ↗ jump to hunk
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 fs/exec.c | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/fs/exec.c b/fs/exec.c
index b63fb020909075..06e07278b456fa 100644
--- a/fs/exec.c
+++ b/fs/exec.c
[...]
quoted hunk ↗ jump to hunk
@@ -2072,7 +2057,7 @@ COMPAT_SYSCALL_DEFINE3(execve, const char __user *, filename,
 	const compat_uptr_t __user *, argv,
 	const compat_uptr_t __user *, envp)
 {
-	return compat_do_execve(getname(filename), argv, envp);
+	return compat_do_execveat(AT_FDCWD, getname(filename), argv, envp, 0);
 }
 
 COMPAT_SYSCALL_DEFINE5(execveat, int, fd,
MBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help