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
Notes: sideshowbarker 2024-07-19 07:18:02 +09:00

View file

@ -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");