From 3be9af769599eec55290c131d1ec1378fc94e736 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 9 May 2021 19:02:46 -0700 Subject: [PATCH] Userland: Reduce pledges requested by AnalogClock After startup AnalogClock only needs the normal GUI event loop pledges. --- Userland/Applications/AnalogClock/main.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Userland/Applications/AnalogClock/main.cpp b/Userland/Applications/AnalogClock/main.cpp index fe54d596d1..afe277b9f6 100644 --- a/Userland/Applications/AnalogClock/main.cpp +++ b/Userland/Applications/AnalogClock/main.cpp @@ -13,14 +13,9 @@ int main(int argc, char** argv) { - if (pledge("stdio recvfd sendfd accept rpath unix cpath wpath fattr", nullptr) < 0) { - perror("pledge"); - return 1; - } - auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio recvfd sendfd accept rpath cpath wpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; }