. Install hack as setgid games so it can chdir into /var/games/hackdir.

I'm somewhat uncomfortable with this change in that it possibly provides
  for setgid games exploits if anyone finds a vulnerability in hack.

PR:		59443
Submitted by:	Mark Laws <mdl@60hz.org>
This commit is contained in:
Greg Lewis 2003-11-20 19:14:47 +00:00
parent 9f51369429
commit c5ecc5ae4f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94513
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- hack/Makefile.orig Thu Nov 20 11:06:45 2003
+++ hack/Makefile Thu Nov 20 11:13:27 2003
@@ -18,6 +18,8 @@
DPADD= ${LIBTERMCAP} ${LIBCOMPAT}
LDADD= -ltermcap -lcompat
CFLAGS+= -fwritable-strings -I${.CURDIR} -I.
+BINGRP= games
+BINMODE=2555
FILES= rumors help hh data
FILESMODE_rumors= 440
FILESGRP= ${BINGRP}

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- hack/Makefile.orig Thu Nov 20 11:06:45 2003
+++ hack/Makefile Thu Nov 20 11:13:27 2003
@@ -18,6 +18,8 @@
DPADD= ${LIBTERMCAP} ${LIBCOMPAT}
LDADD= -ltermcap -lcompat
CFLAGS+= -fwritable-strings -I${.CURDIR} -I.
+BINGRP= games
+BINMODE=2555
FILES= rumors help hh data
FILESMODE_rumors= 440
FILESGRP= ${BINGRP}