summaryrefslogtreecommitdiff
path: root/Userland/Services/LookupServer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/LookupServer/main.cpp')
-rw-r--r--Userland/Services/LookupServer/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Services/LookupServer/main.cpp b/Userland/Services/LookupServer/main.cpp
index d4f0a89bc4..574b441b9d 100644
--- a/Userland/Services/LookupServer/main.cpp
+++ b/Userland/Services/LookupServer/main.cpp
@@ -30,6 +30,11 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv)
return 1;
}
+ if (unveil("/etc/hosts", "r") < 0) {
+ perror("unveil");
+ return 1;
+ }
+
if (unveil(nullptr, nullptr) < 0) {
perror("unveil");
return 1;