1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

Userland: Add promises to programs that will read /etc/timezone

This will require unveiling /etc/timezone itself for reading, as well as
the rpath pledge promise.
This commit is contained in:
Timothy Flynn 2022-01-20 12:27:56 -05:00 committed by Linus Groh
parent da27937144
commit bcf4ec9c61
9 changed files with 10 additions and 4 deletions

View file

@ -90,7 +90,8 @@ static void clean_buffers()
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio"));
TRY(Core::System::pledge("stdio rpath"));
TRY(Core::System::unveil("/etc/timezone", "r"));
TRY(Core::System::unveil(nullptr, nullptr));
int day = 0;