mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
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:
parent
c3be3718cf
commit
6f89557ffc
Notes:
sideshowbarker
2024-07-19 10:04:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6f89557ffc8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue