summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-05-09 19:02:46 -0700
committerAndreas Kling <kling@serenityos.org>2021-05-10 12:36:05 +0200
commit3be9af769599eec55290c131d1ec1378fc94e736 (patch)
tree6fca6f8262924fcae3af788d2328e455f0762490 /Userland/Applications
parent455afd32f20b4904d975c1e1220171e5c2c5e224 (diff)
downloadserenity-3be9af769599eec55290c131d1ec1378fc94e736.zip
Userland: Reduce pledges requested by AnalogClock
After startup AnalogClock only needs the normal GUI event loop pledges.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/AnalogClock/main.cpp7
1 files changed, 1 insertions, 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;
}