From cd0b7656faa5c1044fd070c70afdecf6d8407bf5 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Sat, 7 Jan 2023 18:36:46 -0500 Subject: [PATCH] ConfigServer: Unveil "/etc/passwd" This is needed to use functions like `getpwuid()`. --- Userland/Services/ConfigServer/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Services/ConfigServer/main.cpp b/Userland/Services/ConfigServer/main.cpp index 09184d5e3e..0eaa80e0c9 100644 --- a/Userland/Services/ConfigServer/main.cpp +++ b/Userland/Services/ConfigServer/main.cpp @@ -13,6 +13,7 @@ ErrorOr serenity_main(Main::Arguments) { TRY(Core::System::pledge("stdio accept rpath wpath cpath")); + TRY(Core::System::unveil("/etc/passwd"sv, "r"sv)); TRY(Core::System::unveil(Core::StandardPaths::config_directory(), "rwc"sv)); TRY(Core::System::unveil(Core::StandardPaths::home_directory(), "rwc"sv)); TRY(Core::System::unveil(nullptr, nullptr));