mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
HackStudio: Remove unnecessary unveil in ShellLanguageServer
Remove unveil on / with only browse permissions. Unveil will be sealed later when the root path of project is known.
This commit is contained in:
parent
fa101d6bf6
commit
c93f73c617
Notes:
sideshowbarker
2024-07-18 12:20:17 +09:00
Author: https://github.com/NonStandardModel Commit: https://github.com/SerenityOS/serenity/commit/c93f73c6171 Pull-request: https://github.com/SerenityOS/serenity/pull/8003 Issue: https://github.com/SerenityOS/serenity/issues/7971
@ -47,8 +47,10 @@ int mode_server()
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (unveil("/usr/include", "r") < 0)
|
||||
if (unveil("/usr/include", "r") < 0) {
|
||||
perror("unveil");
|
||||
return 1;
|
||||
}
|
||||
|
||||
// unveil will be sealed later, when we know the project's root path.
|
||||
return event_loop.exec();
|
||||
|
@ -31,9 +31,6 @@ int main(int, char**)
|
||||
perror("unveil");
|
||||
return 1;
|
||||
}
|
||||
if (unveil("/", "b") < 0) {
|
||||
perror("unveil");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return event_loop.exec();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user