1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

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).
This commit is contained in:
Kris Kennaway 2000-08-16 05:58:22 +00:00
parent e7a84bde51
commit 0ba4046659
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31680

View File

@ -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>