summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-01-22 02:13:52 -0800
committerAndreas Kling <kling@serenityos.org>2020-01-22 11:25:09 +0100
commit521c6dbbeea0b8468fa5ed0b9a6ed5d4edc25e5e (patch)
treef0000f86d85067b6cdf366861a9be2c9c391971f
parent50f9d27d3b87f132ce9940631ed248836712bec8 (diff)
downloadserenity-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.cpp2
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();
}