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

RequestServer: Unveil /etc/timezone for date-time usage

This commit is contained in:
Timothy Flynn 2022-01-23 12:01:59 -05:00 committed by Linus Groh
parent fc2c2c8a6d
commit 9684ae460c

View file

@ -25,11 +25,11 @@ ErrorOr<int> serenity_main(Main::Arguments)
// Ensure the certificates are read out here.
[[maybe_unused]] auto& certs = DefaultRootCACertificates::the();
TRY(Core::System::pledge("stdio inet accept unix sendfd recvfd"));
Core::EventLoop event_loop;
// FIXME: Establish a connection to LookupServer and then drop "unix"?
TRY(Core::System::unveil("/tmp/portal/lookup", "rw"));
TRY(Core::System::unveil("/etc/timezone", "r"));
TRY(Core::System::unveil(nullptr, nullptr));
[[maybe_unused]] auto gemini = make<RequestServer::GeminiProtocol>();