SystemMonitor: Remove unveiling /tmp/portal/config

This commit is contained in:
Ralf Donau 2021-11-11 12:07:13 +01:00 committed by Andreas Kling
parent 4d03852190
commit 1c59cfa28c
Notes: sideshowbarker 2024-07-18 00:40:28 +09:00

View file

@ -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");