mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +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:
parent
22cfb1f3bd
commit
05a2a0c492
Notes:
sideshowbarker
2024-07-19 09:55:52 +09:00
Author: https://github.com/awesomekling
Commit: 05a2a0c492
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue