mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
Browser: Unveil /etc/passwd so we can find our home directory if needed
Fixes #1952.
This commit is contained in:
parent
bd45b2b8d3
commit
9093625546
Notes:
sideshowbarker
2024-07-19 07:18:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/90936255467
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (unveil("/etc/passwd", "r") < 0) {
|
||||
perror("unveil");
|
||||
return 1;
|
||||
}
|
||||
|
||||
unveil(nullptr, nullptr);
|
||||
|
||||
auto m_config = Core::ConfigFile::get_for_app("Browser");
|
||||
|
|
Loading…
Reference in a new issue