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.
This commit is contained in:
Andreas Kling 2020-01-13 12:01:01 +01:00
parent c3be3718cf
commit 6f89557ffc
Notes: sideshowbarker 2024-07-19 10:04:42 +09:00

View file

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