summaryrefslogtreecommitdiff
path: root/Userland/Applets
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-10-03 09:32:18 -0400
committerLinus Groh <mail@linusgroh.de>2022-10-03 17:09:21 +0100
commit25e0ab3ee48c046b4d994c1c95df36ca58a3ec78 (patch)
tree66155fffccb0e928109b079d897413fe2e7d45d5 /Userland/Applets
parent0455af4441d64ab0ec5e9f6cabaa94f5de8ac02e (diff)
downloadserenity-25e0ab3ee48c046b4d994c1c95df36ca58a3ec78.zip
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().
Diffstat (limited to 'Userland/Applets')
-rw-r--r--Userland/Applets/Audio/main.cpp2
-rw-r--r--Userland/Applets/ClipboardHistory/main.cpp2
2 files changed, 2 insertions, 2 deletions
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<int> 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<int> 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");