diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2023-01-07 18:36:46 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-01 19:21:10 +0100 |
commit | cd0b7656faa5c1044fd070c70afdecf6d8407bf5 (patch) | |
tree | 5216f92750ed0d8abb356b965730aec4db70cd12 | |
parent | fb79fc0ba66531a547a87ec60c3fed9ccd816023 (diff) | |
download | serenity-cd0b7656faa5c1044fd070c70afdecf6d8407bf5.zip |
ConfigServer: Unveil "/etc/passwd"
This is needed to use functions like `getpwuid()`.
-rw-r--r-- | Userland/Services/ConfigServer/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<int> 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)); |