diff options
author | Eivind Eklund <eivind@FreeBSD.org> | 1997-09-01 00:34:51 +0000 |
---|---|---|
committer | Eivind Eklund <eivind@FreeBSD.org> | 1997-09-01 00:34:51 +0000 |
commit | 34a13bf4cb36b9ba554bf9593c9b180b91988d8d (patch) | |
tree | 2afc8210fc2a0f5e9bb905721c895b27fcab5fec /games/atc/main.c | |
parent | e3ffd60e0a4993e1ee9f1b08e33547aff372de75 (diff) | |
download | src-34a13bf4cb36b9ba554bf9593c9b180b91988d8d.tar.gz src-34a13bf4cb36b9ba554bf9593c9b180b91988d8d.zip |
Change games from setuid games to setgid games.
Reviewed by: maybe@yes.no
Obtained from: OpenBSD (mostly deraadt@openbsd.org)
Notes
Notes:
svn path=/head/; revision=28979
Diffstat (limited to 'games/atc/main.c')
-rw-r--r-- | games/atc/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/games/atc/main.c b/games/atc/main.c index 762c2bc3eca3..6ba227cf2de1 100644 --- a/games/atc/main.c +++ b/games/atc/main.c @@ -70,6 +70,10 @@ main(ac, av) extern char *default_game(), *okay_game(); extern void log_score(), quit(), update(); + /* revoke privs */ + setegid(getgid()); + setgid(getgid()); + start_time = seed = time(0); name = *av++; |