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

WindowServer: unveil("/bin", "x") so we can start applications

Without this, we can't start programs via the system menu. This begs
the question: should WindowServer really be allowed to fork and exec
in the first place?
This commit is contained in:
Andreas Kling 2020-01-21 10:46:42 +01:00
parent 22cfb1f3bd
commit 05a2a0c492

View file

@ -110,6 +110,11 @@ int main(int, char**)
return 1;
}
if (unveil("/bin", "x") < 0) {
perror("unveil");
return 1;
}
if (unveil(nullptr, nullptr) < 0) {
perror("unveil");
return 1;