summaryrefslogtreecommitdiff
path: root/Servers/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-11 23:19:30 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-11 23:28:41 +0100
commitf187374c1bb9704f683f79cc21a388024d7521c4 (patch)
tree00232474a580d72b6584f1ffb28be90dae4d6631 /Servers/WindowServer
parentb39e732eb321377d6c19a209a1787c7f97f9a7e5 (diff)
downloadserenity-f187374c1bb9704f683f79cc21a388024d7521c4.zip
Kernel: fork()ed children should inherit pledge promises :^)
Update various places that now need wider promises as they are not reset by fork() anymore.
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r--Servers/WindowServer/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/WindowServer/main.cpp b/Servers/WindowServer/main.cpp
index d6aa05a635..aeab64d1e7 100644
--- a/Servers/WindowServer/main.cpp
+++ b/Servers/WindowServer/main.cpp
@@ -10,7 +10,7 @@
int main(int, char**)
{
- if (pledge("stdio shared_buffer rpath wpath cpath unix proc fattr", nullptr) < 0) {
+ if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
@@ -35,7 +35,7 @@ int main(int, char**)
WSEventLoop loop;
- if (pledge("stdio shared_buffer rpath wpath cpath unix proc", nullptr) < 0) {
+ if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec", nullptr) < 0) {
perror("pledge");
return 1;
}