[hackers] [dwm] Pledge on OpenBSD || Klemens Nanni
commit f40f86fa873bc4acccdf3d929aa0f786993ae31d
Author: Klemens Nanni <kn_AT_openbsd.org>
AuthorDate: Fri May 25 07:56:27 2018 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Fri May 25 11:49:30 2018 +0200
Pledge on OpenBSD
diff --git a/dwm.c b/dwm.c
index bb95e26..09feae3 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -2137,6 +2137,10 @@ main(int argc, char *argv[])
die("dwm: cannot open display");
checkotherwm();
setup();
+#ifdef __OpenBSD__
+ if (pledge("stdio proc exec", NULL) == -1)
+ die("pledge");
+#endif /* __OpenBSD__ */
scan();
run();
cleanup();
Received on Fri May 25 2018 - 11:49:59 CEST
This archive was generated by hypermail 2.3.0
: Fri May 25 2018 - 12:00:28 CEST