@@ -2023,7 +2023,7 @@ static int do_execve(struct filename *filename,
return do_execveat_common(AT_FDCWD, filename, argv, envp, 0);
}
-static int do_execveat(int fd, struct filename *filename,
+int do_execveat(int fd, struct filename *filename,
const char __user *const __user *__argv,
const char __user *const __user *__envp,
int flags)
@@ -141,4 +141,9 @@ extern ssize_t read_code(struct file *, unsigned long, loff_t, size_t);
int kernel_execve(const char *filename,
const char *const *argv, const char *const *envp);
+int do_execveat(int dfd, struct filename *filename,
+ const char __user *const __user *__argv,
+ const char __user *const __user *__envp,
+ int flags);
+
#endif /* _LINUX_BINFMTS_H */
In order to allow it to be called by io_uring code, expose do_execveat in the header file. Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de> --- fs/exec.c | 2 +- include/linux/binfmts.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)