diff options
author | Klemens Nanni <kn@openbsd.org> | 2018-05-25 07:56:27 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-05-25 11:49:30 +0200 |
commit | f40f86fa873bc4acccdf3d929aa0f786993ae31d (patch) | |
tree | 60c959b3dd50c4b6131d7aae40517125764d17de /dwm.c | |
parent | c3a2e016bb65c00bd44b6461b1b1bbaa61f20093 (diff) |
Pledge on OpenBSD
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(); |