1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:57:45 +00:00

Browser: Unveil /etc/passwd so we can find our home directory if needed

Fixes #1952.
This commit is contained in:
Andreas Kling 2020-04-25 17:21:22 +02:00
parent bd45b2b8d3
commit 9093625546

View file

@ -74,6 +74,11 @@ int main(int argc, char** argv)
return 1; return 1;
} }
if (unveil("/etc/passwd", "r") < 0) {
perror("unveil");
return 1;
}
unveil(nullptr, nullptr); unveil(nullptr, nullptr);
auto m_config = Core::ConfigFile::get_for_app("Browser"); auto m_config = Core::ConfigFile::get_for_app("Browser");