summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--calmwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calmwm.c b/calmwm.c
index a17f0f4..9166485 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -113,6 +113,10 @@ main(int argc, char **argv)
 
 	x_init(display_name);
 	cwm_status = CWM_RUNNING;
+
+	if (pledge("stdio rpath proc exec", NULL) == -1)
+		err(1, "pledge");
+
 	while (cwm_status == CWM_RUNNING)
 		xev_process();
 	x_teardown();