mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03: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: https://github.com/SerenityOS/serenity/commit/05a2a0c4925
@ -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…
Reference in New Issue
Block a user