Hi tech@! Let's give some pledge(2) love to hangman(6)!
It seems to work fine for me with the patch mentioned below, nevertheless please be aware that I don't consider myself a developer, just a mere OpenBSD user with 'security uncle syndrome' :D
That being said please don't beat me to death for trying to turn this lovely OS a little bit more secure :)
Index: src/games/hangman/main.c =================================================================== RCS file: /cvs/src/games/hangman/main.c,v retrieving revision 1.12 diff -u -p -u -r1.12 main.c --- src/games/hangman/main.c 7 Feb 2015 01:37:30 -0000 1.12 +++ src/games/hangman/main.c 20 Oct 2015 19:54:01 -0000 @@ -43,6 +43,9 @@ main(int argc, char *argv[]) { int ch; + if (pledge("malloc tty rpath", NULL) == -1) + err(1, "pledge"); + while ((ch = getopt(argc, argv, "d:hk")) != -1) { switch (ch) { case 'd': Best regards, Ricardo Mestre