From 27ca93c7aba1356267cafb7b3e6646acfdd8af0b Mon Sep 17 00:00:00 2001 From: "Zheng, Qi" Date: Tue, 27 Sep 2022 13:51:05 +0800 Subject: [PATCH] Let the init process can accept the env values --- src/pal/src/pal_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pal/src/pal_api.c b/src/pal/src/pal_api.c index 0eafcaf0..e3da3d30 100644 --- a/src/pal/src/pal_api.c +++ b/src/pal/src/pal_api.c @@ -31,10 +31,11 @@ int pal_run_init_process() { .stderr_fd = STDERR_FILENO, }; int libos_tid = 0; + extern const char **environ; struct occlum_pal_create_process_args init_process_args = { .path = init_path, .argv = init_argv, - .env = NULL, + .env = environ, .stdio = &init_io_fds, .pid = &libos_tid, };