From 31d4bcf5bfe35a892c6ec04cc9e8d4417b990a48 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 13 May 2021 23:20:26 +0200 Subject: 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! --- Userland/Services/Taskbar/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Services/Taskbar') diff --git a/Userland/Services/Taskbar/main.cpp b/Userland/Services/Taskbar/main.cpp index 557621dc68..5ddb9307e3 100644 --- a/Userland/Services/Taskbar/main.cpp +++ b/Userland/Services/Taskbar/main.cpp @@ -31,7 +31,7 @@ static NonnullRefPtr build_system_menu(); int main(int argc, char** argv) { - if (pledge("stdio recvfd sendfd accept proc exec rpath unix cpath fattr sigaction", nullptr) < 0) { + if (pledge("stdio recvfd sendfd proc exec rpath unix sigaction", nullptr) < 0) { perror("pledge"); return 1; } @@ -46,7 +46,7 @@ int main(int argc, char** argv) // We need to obtain the WM connection here as well before the pledge shortening. GUI::WindowManagerServerConnection::the(); - if (pledge("stdio recvfd sendfd accept proc exec rpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd proc exec rpath", nullptr) < 0) { perror("pledge"); return 1; } -- cgit v1.2.3