aboutsummaryrefslogtreecommitdiff
path: root/games/bs
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>1997-09-01 00:34:51 +0000
committerEivind Eklund <eivind@FreeBSD.org>1997-09-01 00:34:51 +0000
commit34a13bf4cb36b9ba554bf9593c9b180b91988d8d (patch)
tree2afc8210fc2a0f5e9bb905721c895b27fcab5fec /games/bs
parente3ffd60e0a4993e1ee9f1b08e33547aff372de75 (diff)
downloadsrc-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/bs')
-rw-r--r--games/bs/bs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/bs/bs.c b/games/bs/bs.c
index f28d4c7119fc..887eb2adb196 100644
--- a/games/bs/bs.c
+++ b/games/bs/bs.c
@@ -1202,6 +1202,10 @@ main(argc, argv)
int argc;
char *argv[];
{
+ /* revoke privs */
+ setegid(getgid());
+ setgid(getgid());
+
do_options(argc, argv);
intro();