summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-22 23:32:07 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-22 23:52:47 +0100
commitd0db6c472c2d6b0722103af59cc4a8d7fa2e1e9e (patch)
treefc0a1be171d50238bd1487c580c4d072e2b9f7cc
parentc5c54f634e779e13aee73174c395fcbbd17ba5e5 (diff)
downloadserenity-d0db6c472c2d6b0722103af59cc4a8d7fa2e1e9e.zip
Applets/ResourceGraph: Remove unnecessary unveiling of /etc/passwd
This used to be needed by Core::ProcessStatisticsReader, but since we no longer use that for the CPU graph, we can just lose it (along with a FIXME about it.)
-rw-r--r--Userland/Applets/ResourceGraph/main.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/Userland/Applets/ResourceGraph/main.cpp b/Userland/Applets/ResourceGraph/main.cpp
index 9dc5bf1a50..bf23800d77 100644
--- a/Userland/Applets/ResourceGraph/main.cpp
+++ b/Userland/Applets/ResourceGraph/main.cpp
@@ -9,7 +9,6 @@
#include <AK/JsonObject.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/File.h>
-#include <LibCore/ProcessStatisticsReader.h>
#include <LibGUI/Application.h>
#include <LibGUI/Frame.h>
#include <LibGUI/Painter.h>
@@ -241,13 +240,6 @@ int main(int argc, char** argv)
return 1;
}
- // FIXME: This is required by Core::ProcessStatisticsReader.
- // It would be good if we didn't depend on that.
- if (unveil("/etc/passwd", "r") < 0) {
- perror("unveil");
- return 1;
- }
-
if (unveil("/proc/stat", "r") < 0) {
perror("unveil");
return 1;