From c5ecc5ae4f7a1e978cda88f101e7786a6357113e Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 20 Nov 2003 19:14:47 +0000 Subject: [PATCH] . 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 --- games/bsdgames/files/patch-hack::Makefile | 13 +++++++++++++ games/freebsd-games/files/patch-hack::Makefile | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 games/bsdgames/files/patch-hack::Makefile create mode 100644 games/freebsd-games/files/patch-hack::Makefile diff --git a/games/bsdgames/files/patch-hack::Makefile b/games/bsdgames/files/patch-hack::Makefile new file mode 100644 index 000000000000..eaa8d43922d1 --- /dev/null +++ b/games/bsdgames/files/patch-hack::Makefile @@ -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} diff --git a/games/freebsd-games/files/patch-hack::Makefile b/games/freebsd-games/files/patch-hack::Makefile new file mode 100644 index 000000000000..eaa8d43922d1 --- /dev/null +++ b/games/freebsd-games/files/patch-hack::Makefile @@ -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}