From d0db6c472c2d6b0722103af59cc4a8d7fa2e1e9e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 22 Nov 2021 23:32:07 +0100 Subject: [PATCH] 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.) --- Userland/Applets/ResourceGraph/main.cpp | 8 -------- 1 file changed, 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 #include #include -#include #include #include #include @@ -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;