mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
WebServer: Unveil /etc/timezone for reading
This commit is contained in:
parent
692c6aeeed
commit
f73eae1245
Notes:
sideshowbarker
2024-07-17 20:09:27 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f73eae1245a
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue