1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 19:15:06 +00:00

Kernel: Add "video" pledge for accessing framebuffer devices

WindowServer becomes the only user.
This commit is contained in:
Andreas Kling 2020-01-12 02:17:30 +01:00
parent bb6b9d9059
commit 017b34e1ad
5 changed files with 28 additions and 23 deletions

View file

@ -10,7 +10,7 @@
int main(int, char**)
{
if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec fattr", nullptr) < 0) {
if (pledge("stdio video 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 exec", nullptr) < 0) {
if (pledge("stdio video shared_buffer rpath wpath cpath unix proc exec", nullptr) < 0) {
perror("pledge");
return 1;
}