Commit Graph

7 Commits

Author SHA1 Message Date
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
cjs 63b3971af2 time_t != long, again. *Sigh*. 1997-10-13 22:18:32 +00:00
christos ef383c95e2 Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
cgd 887dd216b0 clean up import, NetBSD RCS IDs, etc. 1995-04-22 10:58:17 +00:00
jtc 67bd328aa9 Converted from sgtty to termios api, no longer needs libcompat. 1994-05-24 23:54:16 +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