Browse Source

HackStudio: Use pledge()

Andreas Kling 5 years ago
parent
commit
457c7d9efd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      DevTools/HackStudio/main.cpp

+ 5 - 0
DevTools/HackStudio/main.cpp

@@ -96,6 +96,11 @@ bool make_is_available();
 
 int main(int argc, char** argv)
 {
+    if (pledge("stdio tty rpath cpath wpath shared_buffer proc unix fattr", nullptr) < 0) {
+        perror("pledge");
+        return 1;
+    }
+
     GApplication app(argc, argv);
 
     Function<void()> update_actions;