From 25e0ab3ee48c046b4d994c1c95df36ca58a3ec78 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 3 Oct 2022 09:32:18 -0400 Subject: Userland: Tighten promises by removing 'proc' where it isn't used This is a partial revert of commit 7af5eef. After 97d15e9, the 'proc' promise is not needed for operations using getsid(). This also fixes launching several applications in which 7af5eef added the 'proc' promise only in the second call to pledge(). --- Userland/Applets/Audio/main.cpp | 2 +- Userland/Applets/ClipboardHistory/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Applets') diff --git a/Userland/Applets/Audio/main.cpp b/Userland/Applets/Audio/main.cpp index d5b0b41478..513349352f 100644 --- a/Userland/Applets/Audio/main.cpp +++ b/Userland/Applets/Audio/main.cpp @@ -237,7 +237,7 @@ private: ErrorOr serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio recvfd sendfd rpath wpath cpath unix thread proc")); + TRY(Core::System::pledge("stdio recvfd sendfd rpath wpath cpath unix thread")); auto app = TRY(GUI::Application::try_create(arguments)); Config::pledge_domain("AudioApplet"); diff --git a/Userland/Applets/ClipboardHistory/main.cpp b/Userland/Applets/ClipboardHistory/main.cpp index 913f203eca..0902ccb8c2 100644 --- a/Userland/Applets/ClipboardHistory/main.cpp +++ b/Userland/Applets/ClipboardHistory/main.cpp @@ -17,7 +17,7 @@ ErrorOr serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio recvfd sendfd rpath unix proc")); + TRY(Core::System::pledge("stdio recvfd sendfd rpath unix")); auto app = TRY(GUI::Application::try_create(arguments)); Config::pledge_domain("ClipboardHistory"); -- cgit v1.2.3