mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
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.
This commit is contained in:
parent
da27937144
commit
bcf4ec9c61
9 changed files with 10 additions and 4 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue