1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:38:11 +00:00

WindowServer: Drop the "exec" pledge promise entirely

Now that the system menu is out-of-process, we no longer need to exec()
from WindowServer, allowing us to drop this promise. Very cool!
This commit is contained in:
Andreas Kling 2020-02-17 20:09:04 +01:00
parent b711f1eab5
commit a008e2f63a

View file

@ -38,7 +38,7 @@
int main(int, char**)
{
if (pledge("stdio video thread shared_buffer accept rpath wpath cpath unix proc exec fattr", nullptr) < 0) {
if (pledge("stdio video thread shared_buffer accept rpath wpath cpath unix proc fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
@ -88,7 +88,7 @@ int main(int, char**)
WindowServer::EventLoop loop;
if (pledge("stdio video thread shared_buffer accept rpath wpath cpath proc exec", nullptr) < 0) {
if (pledge("stdio video thread shared_buffer accept rpath wpath cpath proc", nullptr) < 0) {
perror("pledge");
return 1;
}