mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 18:24:45 -05:00
SystemMonitor: Remove unveiling /tmp/portal/config
This commit is contained in:
parent
4d03852190
commit
1c59cfa28c
Notes:
sideshowbarker
2024-07-18 00:40:28 +09:00
Author: https://github.com/doctor-rd Commit: https://github.com/SerenityOS/serenity/commit/1c59cfa28c8 Pull-request: https://github.com/SerenityOS/serenity/pull/10868
1 changed files with 2 additions and 7 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue