summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-08-16 05:58:22 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-08-16 05:58:22 +0000
commit0ba4046659bc8abb6c474914eb895fb0ea82bc2b (patch)
tree20804c77e848ff0db82f1323c7baadfd35ca5866 /games
parentBetter variant of .forward line, more close to original (diff)
Remove a world-writable score file by making the game binary setgid games
and the score file root:games mode 664. Since the games group has (should have) no permissions other than to write to game data files, it doesn't really matter if this is "insecure" (lots of other things which are setgid games already are).
Notes
Notes: svn path=/head/; revision=31680
Diffstat (limited to '')
-rw-r--r--games/connect4/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/connect4/Makefile b/games/connect4/Makefile
index 00d097d624f6..aa94d4a722f0 100644
--- a/games/connect4/Makefile
+++ b/games/connect4/Makefile
@@ -27,9 +27,9 @@ MANDIR= ${PREFIX}/man/man
LIBDIR= ${PREFIX}/lib
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/c4 ${PREFIX}/bin/connect4
+ ${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/c4 ${PREFIX}/bin/connect4
${MKDIR} ${LIBDIR}/connect4
- ${INSTALL_DATA} -m 666 /dev/null ${LIBDIR}/connect4/scores
+ ${INSTALL_DATA} -m 664 -o root -g games /dev/null ${LIBDIR}/connect4/scores
${INSTALL_MAN} ${FILESDIR}/connect4.6 ${MANDIR}6/
.include <bsd.port.mk>