NetBSD/games/mille
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
..
comp.c Add use of `const' where appropriate to the games. 1999-09-08 21:17:44 +00:00
end.c WARNSify 1997-10-12 00:53:45 +00:00
extern.c Add use of `const' where appropriate to the games. 1999-09-08 21:17:44 +00:00
init.c WARNSify 1997-10-12 00:53:45 +00:00
Makefile Simply include -lcurses instead of -lcurses -ltermcap 1998-02-18 22:37:30 +00:00
mille.6 WARNSify 1997-10-12 00:53:45 +00:00
mille.c Security improvements for games (largely from or inspired by OpenBSD). 1999-09-12 09:02:20 +00:00
mille.h Add use of `const' where appropriate to the games. 1999-09-08 21:17:44 +00:00
misc.c defined(attron) does not mean there is a <term.h> 1999-03-29 05:12:39 +00:00
move.c Add use of `const' where appropriate to the games. 1999-09-08 21:17:44 +00:00
print.c Add __noreturn__' and __unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
roll.c WARNSify 1997-10-12 00:53:45 +00:00
save.c Include <time.h> in various places in the games where time() or time_t 1999-09-09 17:30:17 +00:00
table.c WARNSify 1997-10-12 00:53:45 +00:00
types.c WARNSify 1997-10-12 00:53:45 +00:00
varpush.c WARNSify 1997-10-12 00:53:45 +00:00