summaryrefslogtreecommitdiffstats
path: root/games/atc
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1997-09-01 00:34:51 +0000
committereivind <eivind@FreeBSD.org>1997-09-01 00:34:51 +0000
commitd8e95d8c1a6a0918fc9dda2ca247833ad222696d (patch)
tree42fed91af49ba9290d473dbe68d13f3f33e7545c /games/atc
parentff4b4c1d18cef70a372542d0a1a7a48e6543cf9e (diff)
downloadFreeBSD-src-d8e95d8c1a6a0918fc9dda2ca247833ad222696d.zip
FreeBSD-src-d8e95d8c1a6a0918fc9dda2ca247833ad222696d.tar.gz
Change games from setuid games to setgid games.
Reviewed by: maybe@yes.no Obtained from: OpenBSD (mostly deraadt@openbsd.org)
Diffstat (limited to 'games/atc')
-rw-r--r--games/atc/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/atc/main.c b/games/atc/main.c
index 762c2bc..6ba227c 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++;
OpenPOWER on IntegriCloud