mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +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:
parent
b711f1eab5
commit
a008e2f63a
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
int main(int, char**)
|
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");
|
perror("pledge");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ int main(int, char**)
|
||||||
|
|
||||||
WindowServer::EventLoop loop;
|
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");
|
perror("pledge");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue