diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-01-22 02:13:52 -0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-22 11:25:09 +0100 |
commit | 521c6dbbeea0b8468fa5ed0b9a6ed5d4edc25e5e (patch) | |
tree | f0000f86d85067b6cdf366861a9be2c9c391971f | |
parent | 50f9d27d3b87f132ce9940631ed248836712bec8 (diff) | |
download | serenity-521c6dbbeea0b8468fa5ed0b9a6ed5d4edc25e5e.zip |
LookupServer: Lock unveil() after initialization.
Once LookupServer is initialized it should never need
access to any any paths for the lifetime of the process.
Lock the veil post initialization.
-rw-r--r-- | Servers/LookupServer/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Servers/LookupServer/main.cpp b/Servers/LookupServer/main.cpp index 24a5936f10..b9b967d650 100644 --- a/Servers/LookupServer/main.cpp +++ b/Servers/LookupServer/main.cpp @@ -46,5 +46,7 @@ int main(int argc, char** argv) return 1; } + unveil(nullptr, nullptr); + return event_loop.exec(); } |