summaryrefslogtreecommitdiff
path: root/Userland/Applications/NetworkSettings
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-10-14 21:55:17 +0300
committerAndrew Kaster <andrewdkaster@gmail.com>2022-10-25 15:33:34 -0600
commit5dfb2b18f36432bf334ebcdf21591fd5426eb9b4 (patch)
tree8aedee7f675b3dbc190f0dffacdcf84c0fdc3ba6 /Userland/Applications/NetworkSettings
parent6e508573a0c1a3a3730bfeb0bc0ee06071f7248f (diff)
downloadserenity-5dfb2b18f36432bf334ebcdf21591fd5426eb9b4.zip
Applications: Use new global variables at /sys/kernel/ directory
Diffstat (limited to 'Userland/Applications/NetworkSettings')
-rw-r--r--Userland/Applications/NetworkSettings/NetworkSettingsWidget.cpp2
-rw-r--r--Userland/Applications/NetworkSettings/main.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/NetworkSettings/NetworkSettingsWidget.cpp b/Userland/Applications/NetworkSettings/NetworkSettingsWidget.cpp
index 0509a46b00..264edec5ac 100644
--- a/Userland/Applications/NetworkSettings/NetworkSettingsWidget.cpp
+++ b/Userland/Applications/NetworkSettings/NetworkSettingsWidget.cpp
@@ -63,7 +63,7 @@ NetworkSettingsWidget::NetworkSettingsWidget()
auto config_file = Core::ConfigFile::open_for_system("Network").release_value_but_fixme_should_propagate_errors();
- auto proc_net_adapters_file = Core::Stream::File::open("/proc/net/adapters"sv, Core::Stream::OpenMode::Read).release_value_but_fixme_should_propagate_errors();
+ auto proc_net_adapters_file = Core::Stream::File::open("/sys/kernel/net/adapters"sv, Core::Stream::OpenMode::Read).release_value_but_fixme_should_propagate_errors();
auto data = proc_net_adapters_file->read_all().release_value_but_fixme_should_propagate_errors();
JsonParser parser(data);
JsonValue proc_net_adapters_json = parser.parse().release_value_but_fixme_should_propagate_errors();
diff --git a/Userland/Applications/NetworkSettings/main.cpp b/Userland/Applications/NetworkSettings/main.cpp
index f09c388b80..01c4d48507 100644
--- a/Userland/Applications/NetworkSettings/main.cpp
+++ b/Userland/Applications/NetworkSettings/main.cpp
@@ -21,8 +21,8 @@ ErrorOr<int> serenity_main(Main::Arguments args)
TRY(Core::System::unveil("/bin/NetworkServer", "x"));
TRY(Core::System::unveil("/etc/Network.ini", "rwc"));
- TRY(Core::System::unveil("/proc/all", "r"));
- TRY(Core::System::unveil("/proc/net/adapters", "r"));
+ TRY(Core::System::unveil("/sys/kernel/processes", "r"));
+ TRY(Core::System::unveil("/sys/kernel/net/adapters", "r"));
TRY(Core::System::unveil("/res", "r"));
TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw"));
TRY(Core::System::unveil("/tmp/portal/window", "rw"));