summaryrefslogtreecommitdiff
path: root/Userland/Services/Clipboard
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/Services/Clipboard
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/Services/Clipboard')
-rw-r--r--Userland/Services/Clipboard/main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Userland/Services/Clipboard/main.cpp b/Userland/Services/Clipboard/main.cpp
index 4a0f63ec38..6afb6ad421 100644
--- a/Userland/Services/Clipboard/main.cpp
+++ b/Userland/Services/Clipboard/main.cpp
@@ -12,15 +12,11 @@
int main(int, char**)
{
- if (pledge("stdio recvfd sendfd accept unix rpath cpath fattr", nullptr) < 0) {
+ if (pledge("stdio recvfd sendfd accept unix", nullptr) < 0) {
perror("pledge");
return 1;
}
Core::EventLoop event_loop;
- if (pledge("stdio recvfd sendfd unix accept", nullptr) < 0) {
- perror("pledge");
- return 1;
- }
if (unveil(nullptr, nullptr) < 0) {
perror("unveil");
return 1;