summaryrefslogtreecommitdiff
path: root/Applications/Piano
diff options
context:
space:
mode:
authorBrendan Coles <bcoles@gmail.com>2020-11-02 21:34:29 +0000
committerAndreas Kling <kling@serenityos.org>2020-11-02 22:36:27 +0100
commited5469c1c2a2dd90011f6c8ff55bfdf8e5f82104 (patch)
treece2401a3e61df367508a399880587a935a7fb9ab /Applications/Piano
parent9efcb5d290465b6eec2497a019f72eca97856984 (diff)
downloadserenity-ed5469c1c2a2dd90011f6c8ff55bfdf8e5f82104.zip
Applications: Use pledge and unveil
Diffstat (limited to 'Applications/Piano')
-rw-r--r--Applications/Piano/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Applications/Piano/main.cpp b/Applications/Piano/main.cpp
index fa002f8fc9..548bd7eb40 100644
--- a/Applications/Piano/main.cpp
+++ b/Applications/Piano/main.cpp
@@ -45,8 +45,18 @@
int main(int argc, char** argv)
{
+ if (pledge("stdio thread rpath accept cpath wpath shared_buffer unix fattr", nullptr) < 0) {
+ perror("pledge");
+ return 1;
+ }
+
auto app = GUI::Application::construct(argc, argv);
+ if (pledge("stdio thread rpath accept cpath wpath shared_buffer unix", nullptr) < 0) {
+ perror("pledge");
+ return 1;
+ }
+
auto audio_client = Audio::ClientConnection::construct();
audio_client->handshake();