1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

SQLServer: Unveil /etc/passwd

This is now required to launch the SQLServer for Browser (without
this it now fails to launch).
This commit is contained in:
MacDue 2023-02-01 23:53:48 +00:00 committed by Andrew Kaster
parent cd3c51f29b
commit c3bd841d50

View file

@ -19,6 +19,7 @@ ErrorOr<int> 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));