summaryrefslogtreecommitdiff
path: root/Userland/Applications/PartitionEditor
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2023-03-15 00:28:34 +0000
committerAndreas Kling <kling@serenityos.org>2023-03-15 11:28:12 +0100
commit52e2095a3f09ef2b39f0dde8ffc2b393dfbefce3 (patch)
tree6200f02854e84ada4a19a125884013e4097b2b14 /Userland/Applications/PartitionEditor
parentc11860bdcdf5c3a4e412fde2b18143ef08c2a85d (diff)
downloadserenity-52e2095a3f09ef2b39f0dde8ffc2b393dfbefce3.zip
PartitionEditor: Add missing unveils
These were somewhat found by trial and error, but it seems like this is now the required set to launch this without error.
Diffstat (limited to 'Userland/Applications/PartitionEditor')
-rw-r--r--Userland/Applications/PartitionEditor/main.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/Userland/Applications/PartitionEditor/main.cpp b/Userland/Applications/PartitionEditor/main.cpp
index 70cd61dd69..ad1cb4c15b 100644
--- a/Userland/Applications/PartitionEditor/main.cpp
+++ b/Userland/Applications/PartitionEditor/main.cpp
@@ -32,14 +32,18 @@ static Vector<DeprecatedString> get_device_paths()
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
+ TRY(Core::System::unveil("/dev", "r"));
+ TRY(Core::System::unveil("/res", "r"));
+ TRY(Core::System::unveil("/proc", "r"));
+ TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw"));
+ TRY(Core::System::unveil("/tmp/portal/window", "rw"));
+ TRY(Core::System::unveil(nullptr, nullptr));
+
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix"));
auto app = TRY(GUI::Application::try_create(arguments));
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
- TRY(Core::System::unveil("/dev", "r"));
- TRY(Core::System::unveil("/res", "r"));
- TRY(Core::System::unveil(nullptr, nullptr));
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-partition-editor"sv));