Index: apertium/transferpp.cc
--- apertium/transferpp.cc.orig
+++ apertium/transferpp.cc
@@ -20,11 +20,18 @@
 #include <iostream>
 #include <lttoolbox/string_utils.h>
 #include <libgen.h>
+#include <unistd.h>
 
 using namespace std;
 
 int main(int argc, char *argv[])
 {
+  if(pledge("stdio rpath wpath cpath", NULL) == -1)
+  {
+    cerr << "pledge" << endl;
+    return EXIT_FAILURE;
+  }
+
   LtLocale::tryToSetLocale();
 
   if(argc != 3)
