]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/posix-process: Register `execve` using non-LL variant
authorSergiu Moga <sergiu@unikraft.io>
Wed, 19 Mar 2025 15:15:00 +0000 (17:15 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 17 Apr 2025 12:33:46 +0000 (12:33 +0000)
Use the non-LL variant of execenv-based syscall registration for
execenv so that we will automatically have a corresponding libc
wrapper defined.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1618

lib/posix-process/execve.c

index 6911b1dcae9f37251f66bbd6b748c23fb1c8932f..f04cf20ed58ba44870fc66dd25987380781a3a9a 100644 (file)
@@ -77,9 +77,9 @@ static int pprocess_cleanup(struct uk_thread *thread __maybe_unused)
        return 0;
 }
 
-UK_LLSYSCALL_R_E_DEFINE(int, execve, const char *, pathname,
-                       char *const *, argv,
-                       char *const *, envp)
+UK_SYSCALL_R_E_DEFINE(int, execve, const char *, pathname,
+                     char *const *, argv,
+                     char *const *, envp)
 {
        struct posix_process_execve_event_data event_data;
        struct uk_binfmt_loader_args loader_args;