From: mestre Date: Thu, 9 Aug 2018 17:51:22 +0000 (+0000) Subject: The game is playable without the need to access any files therefore we can X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e6afc4b502de463bb00010eb74b615ca9569f111;p=openbsd The game is playable without the need to access any files therefore we can effectively disable all fs access by dropping "rpath wpath cpath" from pledge(2) right at the beginning of the program. "looks right" tb@ --- diff --git a/games/trek/main.c b/games/trek/main.c index a1f952f32dc..d4b348b4c2a 100644 --- a/games/trek/main.c +++ b/games/trek/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.17 2016/01/07 16:00:33 tb Exp $ */ +/* $OpenBSD: main.c,v 1.18 2018/08/09 17:51:22 mestre Exp $ */ /* $NetBSD: main.c,v 1.4 1995/04/22 10:59:10 cgd Exp $ */ /* @@ -121,7 +121,7 @@ main(int argc, char **argv) int ac; char **av; - if (pledge("stdio rpath wpath cpath", NULL) == -1) + if (pledge("stdio", NULL) == -1) err(1, "pledge"); av = argv;