mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user