Index: apertium/apertium_transfer.cc
--- apertium/apertium_transfer.cc.orig
+++ apertium/apertium_transfer.cc
@@ -73,6 +73,11 @@ void testfile(string const &filename)
 
 int main(int argc, char *argv[])
 {
+  if (pledge("stdio rpath wpath cpath", NULL) == -1) {
+    wcerr << "pledge" << endl;
+    exit(EXIT_FAILURE);
+  }
+
   LtLocale::tryToSetLocale();
 
   Transfer t;
