summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-20 12:27:56 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-23 12:48:26 +0000
commitbcf4ec9c6152094a0a2abee37f4c6c92062998ba (patch)
tree55181d6346102ff902919bb2443c59081f2d6a7f /Userland/Services/WebContent
parentda27937144f1d23bbca39c4e2f7a7bc1484b2dc1 (diff)
downloadserenity-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/Services/WebContent')
-rw-r--r--Userland/Services/WebContent/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/main.cpp b/Userland/Services/WebContent/main.cpp
index 8bb754281c..2c51f2f761 100644
--- a/Userland/Services/WebContent/main.cpp
+++ b/Userland/Services/WebContent/main.cpp
@@ -16,6 +16,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
Core::EventLoop event_loop;
TRY(Core::System::pledge("stdio recvfd sendfd accept unix rpath"));
TRY(Core::System::unveil("/res", "r"));
+ TRY(Core::System::unveil("/etc/timezone", "r"));
TRY(Core::System::unveil("/tmp/portal/request", "rw"));
TRY(Core::System::unveil("/tmp/portal/image", "rw"));
TRY(Core::System::unveil("/tmp/portal/websocket", "rw"));