NetBSD/games/rogue
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
..
USD.doc
CHANGES
curses.c WARNSify (not an insignificant task...) 1997-10-12 11:45:01 +00:00
hit.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
init.c Security improvements for games (largely from or inspired by OpenBSD). 1999-09-12 09:02:20 +00:00
inventory.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
level.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
machdep.c Security improvements for games (largely from or inspired by OpenBSD). 1999-09-12 09:02:20 +00:00
main.c WARNSify (not an insignificant task...) 1997-10-12 11:45:01 +00:00
Makefile s/SETUIDGAME/SETGIDGAME/ - catch up with the rest of the world. 1999-04-05 08:04:48 +00:00
message.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
monster.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
move.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
object.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
pack.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
pathnames.h
play.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
random.c WARNSify (not an insignificant task...) 1997-10-12 11:45:01 +00:00
ring.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
rogue.6 WARNSify (not an insignificant task...) 1997-10-12 11:45:01 +00:00
rogue.h Security improvements for games (largely from or inspired by OpenBSD). 1999-09-12 09:02:20 +00:00
room.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
save.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
score.c Security improvements for games (largely from or inspired by OpenBSD). 1999-09-12 09:02:20 +00:00
spec_hit.c WARNSify (not an insignificant task...) 1997-10-12 11:45:01 +00:00
throw.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
trap.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
use.c constify, per PR 6148 1998-11-10 13:01:31 +00:00
zap.c constify, per PR 6148 1998-11-10 13:01:31 +00:00