Userland: Reduce pledges requested by AnalogClock

After startup AnalogClock only needs the normal GUI event loop pledges.
This commit is contained in:
Brian Gianforcaro 2021-05-09 19:02:46 -07:00 committed by Andreas Kling
parent 455afd32f2
commit 3be9af7695
Notes: sideshowbarker 2024-07-18 18:22:59 +09:00

View file

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