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:
parent
cd3c51f29b
commit
c3bd841d50
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue