Commit Graph

11 Commits

Author SHA1 Message Date
jsm
50ab22237f Remove rogue's old and bit-rotten cut-down version of curses. 1999-09-13 17:14:07 +00:00
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
hubertf
6d265b3268 constify, per PR 6148 1998-11-10 13:01:31 +00:00
mycroft
a6bb9f4ef1 const poisoning. 1998-07-27 01:12:35 +00:00
hubertf
d6a8a3d395 As per PR bin/5806 by Joseph Myers <jsm28@cam.ac.uk>/lash@tellabs.com:
- Init Random by time, not by pid
 - Fix lossage with fire-spitting, monster-killing dragons
1998-07-21 07:01:54 +00:00
lukem
2736b51163 WARNSify (not an insignificant task...) 1997-10-12 11:45:01 +00:00
mycroft
c35b410216 Use POSIX tty semantics. 1995-04-28 23:49:19 +00:00
cgd
c4816c32b3 Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
1995-04-24 12:21:37 +00:00
cgd
7ee35daafd clean up import, NetBSD RCS Ids 1995-04-22 10:27:22 +00:00
mycroft
8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00