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@xxxxxxx> --- fs/exec.c | 2 +- include/linux/binfmts.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/exec.c b/fs/exec.c index 98cb7ba9983c..1a03ae5b9941 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -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) diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index e6c00e860951..baec14dfb7ca 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h @@ -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 */ -- 2.47.0