mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +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:
parent
cfb61cbd54
commit
26b8155530
Notes:
sideshowbarker
2024-07-17 14:25:18 +09:00
Author: https://github.com/brapru
Commit: 26b8155530
Pull-request: https://github.com/SerenityOS/serenity/pull/13521
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
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("/proc/net/arp", "r"));
|
||||||
TRY(Core::System::unveil(nullptr, nullptr));
|
TRY(Core::System::unveil(nullptr, nullptr));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue