Index: src/rtx_decomp.cc
--- src/rtx_decomp.cc.orig
+++ src/rtx_decomp.cc
@@ -9,6 +9,7 @@
 #include <cstring>
 #include <cstdio>
 #include <unicode/ustdio.h>
+#include <unistd.h>
 
 void writeRule(UString rule, UFILE* out)
 {
@@ -212,6 +213,11 @@ void writeRule(UString rule, UFILE* out)
 
 int main(int argc, char *argv[])
 {
+  if (pledge("stdio wpath rpath cpath", NULL) == -1)
+  {
+    std::wcerr << "pledge" << std::endl;
+    exit(EXIT_FAILURE);
+  }
   LtLocale::tryToSetLocale();
   CLI cli("decompile a transfer bytecode file", PACKAGE_VERSION);
   cli.add_bool_arg('h', "help", "print this message and exit");
