Index: apertium/apertium_tagger_readwords.cc
--- apertium/apertium_tagger_readwords.cc.orig
+++ apertium/apertium_tagger_readwords.cc
@@ -22,6 +22,7 @@
 #include <apertium/tagger_data_hmm.h>
 #include <lttoolbox/lt_locale.h>
 #include <iostream>
+#include <unistd.h>
 
 #include <cstdlib>
 #include <lttoolbox/string_utils.h>
@@ -84,6 +85,11 @@ void help(char *name) {
 
 
 int main(int argc, char* argv[]) {
+  if (pledge("stdio rpath wpath cpath", NULL) == -1) {
+    cerr << "pledge" << endl;
+    return 1;
+  }
+
   LtLocale::tryToSetLocale();
   string tsxfile="";
   string probfile="";
