diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-01-20 12:27:56 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-23 12:48:26 +0000 |
commit | bcf4ec9c6152094a0a2abee37f4c6c92062998ba (patch) | |
tree | 55181d6346102ff902919bb2443c59081f2d6a7f /Userland/Applications/Calendar | |
parent | da27937144f1d23bbca39c4e2f7a7bc1484b2dc1 (diff) | |
download | serenity-bcf4ec9c6152094a0a2abee37f4c6c92062998ba.zip |
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.
Diffstat (limited to 'Userland/Applications/Calendar')
-rw-r--r-- | Userland/Applications/Calendar/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/Calendar/main.cpp b/Userland/Applications/Calendar/main.cpp index c76b9f8578..57aceb613e 100644 --- a/Userland/Applications/Calendar/main.cpp +++ b/Userland/Applications/Calendar/main.cpp @@ -27,6 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto app = TRY(GUI::Application::try_create(arguments)); TRY(Core::System::pledge("stdio recvfd sendfd rpath", nullptr)); + TRY(Core::System::unveil("/etc/timezone", "r")); TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil(nullptr, nullptr)); |