From c3bd841d50167baa1cb627d01f2fb238c7c6d611 Mon Sep 17 00:00:00 2001 From: MacDue Date: Wed, 1 Feb 2023 23:53:48 +0000 Subject: [PATCH] SQLServer: Unveil /etc/passwd This is now required to launch the SQLServer for Browser (without this it now fails to launch). --- Userland/Services/SQLServer/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Services/SQLServer/main.cpp b/Userland/Services/SQLServer/main.cpp index 0c8f2c754b..a23949e58b 100644 --- a/Userland/Services/SQLServer/main.cpp +++ b/Userland/Services/SQLServer/main.cpp @@ -19,6 +19,7 @@ ErrorOr serenity_main(Main::Arguments) auto database_path = DeprecatedString::formatted("{}/sql", Core::StandardPaths::data_directory()); TRY(Core::Directory::create(database_path, Core::Directory::CreateDirectories::Yes)); + TRY(Core::System::unveil("/etc/passwd"sv, "r"sv)); TRY(Core::System::unveil(database_path, "rwc"sv)); TRY(Core::System::unveil(nullptr, nullptr));