summaryrefslogtreecommitdiff
path: root/Userland/Applets/Audio/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-13 23:20:26 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-13 23:28:40 +0200
commit31d4bcf5bfe35a892c6ec04cc9e8d4417b990a48 (patch)
treefaae01cc0950a4d1de1eb7932f07b799c558f0fd /Userland/Applets/Audio/main.cpp
parent04d78adaf795c803f6867335c63f8339f13459eb (diff)
downloadserenity-31d4bcf5bfe35a892c6ec04cc9e8d4417b990a48.zip
Userland: Tighten a *lot* of pledges! :^)
Since applications using Core::EventLoop no longer need to create a socket in /tmp/rpc/, and also don't need to listen for incoming connections on this socket, we can remove a whole bunch of pledges!
Diffstat (limited to 'Userland/Applets/Audio/main.cpp')
-rw-r--r--Userland/Applets/Audio/main.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/Userland/Applets/Audio/main.cpp b/Userland/Applets/Audio/main.cpp
index c6eea08a01..a39651c651 100644
--- a/Userland/Applets/Audio/main.cpp
+++ b/Userland/Applets/Audio/main.cpp
@@ -195,18 +195,13 @@ private:
int main(int argc, char** argv)
{
- if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr", nullptr) < 0) {
+ if (pledge("stdio recvfd sendfd rpath unix", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio recvfd sendfd accept rpath unix", nullptr) < 0) {
- perror("pledge");
- return 1;
- }
-
auto window = GUI::Window::construct();
window->set_has_alpha_channel(true);
window->set_title("Audio");
@@ -223,7 +218,7 @@ int main(int argc, char** argv)
unveil(nullptr, nullptr);
- if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) {
+ if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
perror("pledge");
return 1;
}