Remove a few too early pledge(2)s on games/ and apply them a little bit later
authormestre <mestre@openbsd.org>
Fri, 24 Aug 2018 11:14:49 +0000 (11:14 +0000)
committermestre <mestre@openbsd.org>
Fri, 24 Aug 2018 11:14:49 +0000 (11:14 +0000)
commitb9f129211620eb89b4a66305c6bd4241d9ac028d
treeaaaaaf7add40a89260ac46525e6e10a3ef3264f0
parent162072e7b56855ebdfd5663fb58f61c886941922
Remove a few too early pledge(2)s on games/ and apply them a little bit later
but with much reduced permissions ("stdio tty" if ncurses based and "stdio"
for the ones that only perform basic operations).

There's still a few games that we cannot yet remove their fs access, through
pledge(2), since they open files on demand and too late, this might get
revisited in the future.

OK tb@
games/bs/bs.c
games/canfield/canfield/canfield.c
games/hack/makedefs.c
games/quiz/quiz.c
games/snake/snake.c
games/worm/worm.c