summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Donau <ruelle@volleyballschlaeger.de>2021-11-11 12:07:13 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-25 08:50:31 +0100
commit1c59cfa28c8233f199aed8a334c59181f15d3761 (patch)
tree75ebc37b2516e303492a7abc82d3c4f0040273d3
parent4d03852190b6a4c9135516b32482d4a8acccd7e1 (diff)
downloadserenity-1c59cfa28c8233f199aed8a334c59181f15d3761.zip
SystemMonitor: Remove unveiling /tmp/portal/config
-rw-r--r--Userland/Applications/SystemMonitor/main.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp
index bbf00015eb..68d5a3d34b 100644
--- a/Userland/Applications/SystemMonitor/main.cpp
+++ b/Userland/Applications/SystemMonitor/main.cpp
@@ -108,6 +108,8 @@ int main(int argc, char** argv)
auto app = GUI::Application::construct(argc, argv);
+ Config::pledge_domains("SystemMonitor");
+
if (unveil("/etc/passwd", "r") < 0) {
perror("unveil");
return 1;
@@ -159,15 +161,8 @@ int main(int argc, char** argv)
return 1;
}
- if (unveil("/tmp/portal/config", "rw") < 0) {
- perror("unveil");
- return 1;
- }
-
unveil(nullptr, nullptr);
- Config::pledge_domains("SystemMonitor");
-
const char* args_tab = "processes";
Core::ArgsParser parser;
parser.add_option(args_tab, "Tab, one of 'processes', 'graphs', 'fs', 'hardware', or 'network'", "open-tab", 't', "tab");