summaryrefslogtreecommitdiff
path: root/Servers/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-13 12:01:01 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-13 14:41:15 +0100
commit6f89557ffc8117089f3fa0c187606b93f5ad5d1a (patch)
tree59c34eb6a9a4f62a835c2bd61b750ca00c6b6112 /Servers/WindowServer
parentc3be3718cfa8bc61279735fd060624ecb492d118 (diff)
downloadserenity-6f89557ffc8117089f3fa0c187606b93f5ad5d1a.zip
WindowServer: Add "thread" pledge since we need it for wallpapers
Longer-term we should come up with a design where WindowServer doesn't have to decode untrusted image files.
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 2ad0d05200..10d6e5cdbd 100644
--- a/Servers/WindowServer/main.cpp
+++ b/Servers/WindowServer/main.cpp
@@ -10,7 +10,7 @@
int main(int, char**)
{
- if (pledge("stdio video shared_buffer rpath wpath cpath unix proc exec fattr", nullptr) < 0) {
+ if (pledge("stdio video thread 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 video shared_buffer rpath wpath cpath unix proc exec", nullptr) < 0) {
+ if (pledge("stdio video thread shared_buffer rpath wpath cpath unix proc exec", nullptr) < 0) {
perror("pledge");
return 1;
}