summaryrefslogtreecommitdiff
path: root/Services
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-06 19:33:30 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-07 09:10:14 +0200
commitbcb4cb4543acf13f0ccb518da1b340b5d7424c6d (patch)
treecffdc6a35bcf9ce91a491458cf22cb40c22dc4ac /Services
parentf008e83eaebc16541854f9eaa9068cecb7fc9890 (diff)
downloadserenity-bcb4cb4543acf13f0ccb518da1b340b5d7424c6d.zip
AudioServer: Lock the process veil after startup
We can't do any file syscalls anyway because of the reduction of pledges, so we might as well lock the veil anyway.
Diffstat (limited to 'Services')
-rw-r--r--Services/AudioServer/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Services/AudioServer/main.cpp b/Services/AudioServer/main.cpp
index d529bf7d06..ea489e2a13 100644
--- a/Services/AudioServer/main.cpp
+++ b/Services/AudioServer/main.cpp
@@ -57,5 +57,7 @@ int main(int, char**)
return 1;
}
+ unveil(nullptr, nullptr);
+
return event_loop.exec();
}