1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Utilities: Pledge inet in arp command

Previously the arp command would crash when trying to set/delete from
the table.
This commit is contained in:
brapru 2022-04-05 06:14:54 -04:00 committed by Andreas Kling
parent cfb61cbd54
commit 26b8155530

View file

@ -25,7 +25,7 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio rpath tty"));
TRY(Core::System::pledge("stdio rpath tty inet"));
TRY(Core::System::unveil("/proc/net/arp", "r"));
TRY(Core::System::unveil(nullptr, nullptr));