From 17135c9704311b9889740e0e2fed3a5a1515d538 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 12 Jan 2020 02:28:26 +0100 Subject: [PATCH] SoundPlayer: Use pledge() --- Applications/SoundPlayer/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp index 3517bfcf10..583e4aa810 100644 --- a/Applications/SoundPlayer/main.cpp +++ b/Applications/SoundPlayer/main.cpp @@ -12,8 +12,18 @@ int main(int argc, char** argv) { + if (pledge("stdio unix shared_buffer cpath rpath fattr", nullptr) < 0) { + perror("pledge"); + return 1; + } + GApplication app(argc, argv); + if (pledge("stdio unix shared_buffer rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + auto audio_client = AClientConnection::construct(); audio_client->handshake();