From 0ba4046659bc8abb6c474914eb895fb0ea82bc2b Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Wed, 16 Aug 2000 05:58:22 +0000 Subject: 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). --- games/connect4/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'games') 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 -- cgit v1.2.3