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.)
This commit is contained in:
Andreas Kling 2021-11-22 23:32:07 +01:00
parent c5c54f634e
commit d0db6c472c
Notes: sideshowbarker 2024-07-18 01:43:16 +09:00

View file

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