From 34c19f164c2219cc8f51bbe1ec17e5f2033896db Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 21 Nov 2015 03:20:31 +0000 Subject: pledge "stdio rpath wpath cpath" from Ricardo Mestre --- games/monop/monop.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/games/monop/monop.c b/games/monop/monop.c index c8136f9dbee..7a31d2d2a77 100644 --- a/games/monop/monop.c +++ b/games/monop/monop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monop.c,v 1.13 2015/08/22 14:47:41 deraadt Exp $ */ +/* $OpenBSD: monop.c,v 1.14 2015/11/21 03:20:30 deraadt Exp $ */ /* $NetBSD: monop.c,v 1.3 1995/03/23 08:34:52 cgd Exp $ */ /* @@ -48,8 +48,12 @@ main(ac, av) char *av[]; { num_luck = sizeof lucky_mes / sizeof (char *); + + if (pledge("stdio rpath wpath cpath", NULL) == -1) + err(1, "pledge"); + init_decks(); - init_monops(); + init_monops(); if (ac > 1) { if (!rest_f(av[1])) restore(); -- cgit v1.2.3