WebServer: Unveil /etc/timezone for reading

This commit is contained in:
Andreas Kling 2022-01-26 18:34:11 +01:00
parent 692c6aeeed
commit f73eae1245
Notes: sideshowbarker 2024-07-17 20:09:27 +09:00

View file

@ -94,6 +94,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
outln("Listening on {}:{}", ipv4_address.value(), port);
TRY(Core::System::unveil("/etc/timezone", "r"));
TRY(Core::System::unveil("/res/icons", "r"));
TRY(Core::System::unveil(real_root_path.characters(), "r"));
TRY(Core::System::unveil(nullptr, nullptr));