diff --git a/apps/init.cpp b/apps/init.cpp index 612822ca..d7bbefe0 100644 --- a/apps/init.cpp +++ b/apps/init.cpp @@ -339,7 +339,7 @@ Result sysinit() stdout = fopen("/dev/console", "w"); stderr = fopen("/dev/console", "w"); - TRY(os::Security::pledge("stdio rpath wpath cpath fattr host mount proc exec signal", nullptr)); + TRY(os::Security::pledge("stdio rpath wpath cpath fattr host mount proc exec signal id", nullptr)); mount_tmpfs(); mount_shmfs(); @@ -356,12 +356,10 @@ Result sysinit() if (signal(SIGTERM, sigterm_handler) == SIG_ERR) do_log("[init] failed to register handler for SIGTERM\n"); if (signal(SIGQUIT, sigquit_handler) == SIG_ERR) do_log("[init] failed to register handler for SIGQUIT\n"); - TRY(os::Security::pledge("stdio rpath wpath cpath proc exec", nullptr)); + TRY(os::Security::pledge("stdio rpath wpath cpath proc exec id", nullptr)); start_services("/etc/init"); - TRY(os::Security::pledge("stdio rpath wpath proc exec", nullptr)); - while (1) { int status;