NetBSD/games/canfield/canfield
jsm 5367f3400c Security improvements for games (largely from or inspired by OpenBSD).
Games which run setgid from dm, but don't need to, should drop their
privileges at startup.

Games which have a scorefile should open it at startup, then drop all
privileges leaving just the open writable file descriptor.  If the
game can invoke subprocesses, this should be made close-on-exec.

Games with scorefiles should make sure they do not get a file
descriptor < 3.  (Otherwise, they could get confused and corrupt the
scorefile when using stdin, stdout or stderr.)

Some old setuid revokes from the days of setuid games change into gid
revokes.
1999-09-12 09:02:20 +00:00
..
canfield.6 Fix .Bl/.El imbalance. 1999-03-10 09:29:08 +00:00
canfield.c Security improvements for games (largely from or inspired by OpenBSD). 1999-09-12 09:02:20 +00:00
Makefile Simply include -lcurses instead of -lcurses -ltermcap 1998-02-18 22:37:30 +00:00
pathnames.h clean up import 1995-03-21 15:03:38 +00:00