NetBSD/games/trek
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
..
DOC
USD.doc
Makefile Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
abandon.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
attack.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
autover.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
capture.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
cgetc.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
check_out.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
checkcond.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
compkl.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
computer.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
damage.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
damaged.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
dcrept.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
destruct.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
dock.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
dumpgame.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
dumpme.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
dumpssradio.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
events.c Include string.h for memcpy(). 1997-10-13 22:05:26 +00:00
externs.c const poisoning 1999-07-21 13:19:10 +00:00
getcodi.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
getpar.c const poisoning 1999-07-21 13:19:10 +00:00
getpar.h Add use of `const' where appropriate to the games. 1999-09-08 21:17:44 +00:00
help.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
impulse.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
initquad.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
kill.c const poisoning 1999-07-21 13:19:10 +00:00
klmove.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
lose.c const poisoning 1999-07-21 13:19:10 +00:00
lrscan.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
main.c Security improvements for games (largely from or inspired by OpenBSD). 1999-09-12 09:02:20 +00:00
move.c Add braces to make the new egcs happy. 1998-08-30 09:19:36 +00:00
nova.c Add braces to make the new egcs happy. 1998-08-30 09:19:36 +00:00
out.c const poisoning 1999-07-21 13:19:10 +00:00
phaser.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
play.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
ram.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
ranf.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
rest.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
schedule.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
score.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
setup.c const poisoning 1999-07-21 13:19:10 +00:00
setwarp.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
shield.c const poisoning 1999-07-21 13:19:10 +00:00
snova.c Warnsify and remove local implementations of libc functions. 1997-10-12 21:24:24 +00:00
srscan.c const poisoning 1999-07-21 13:19:10 +00:00
systemname.c const poisoning 1999-07-21 13:19:10 +00:00
torped.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
trek.6 change: 1999-04-06 04:54:19 +00:00
trek.h Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
visual.c Add `__noreturn__' and `__unused__' attributes where appropriate to 1999-09-08 21:45:25 +00:00
warp.c fix prototype, PR#5867 1998-09-11 14:28:28 +00:00
win.c const poisoning 1999-07-21 13:19:10 +00:00