Services: Use new global variables at /sys/kernel/ directory

This commit is contained in:
Liav A 2022-10-14 21:56:07 +03:00 committed by Andrew Kaster
commit 35c98a031a
Notes: sideshowbarker 2024-07-17 05:06:15 +09:00
11 changed files with 13 additions and 13 deletions

View file

@ -17,7 +17,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
auto server = TRY(LookupServer::LookupServer::try_create());
TRY(Core::System::pledge("stdio accept inet rpath"));
TRY(Core::System::unveil("/proc/net/adapters", "r"));
TRY(Core::System::unveil("/sys/kernel/net/adapters", "r"));
TRY(Core::System::unveil("/etc/hosts", "r"));
TRY(Core::System::unveil(nullptr, nullptr));
return event_loop.exec();