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
Notes: sideshowbarker 2024-07-19 09:55:52 +09:00

View File

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