summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-08-16 06:06:40 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-08-16 06:06:40 +0000
commitfd34708e71962455978548181f7afc0bc96a9aae (patch)
treeaf809aeba74cfbcac14754f12ebd6ebfc08be8f6 /games
parentRemove a world-writable score file by making the game binary setgid games (diff)
Remove world-writable score files 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=31681
Diffstat (limited to 'games')
-rw-r--r--games/xbomb/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/games/xbomb/Makefile b/games/xbomb/Makefile
index d5a756ddadbf..1d8aa33ad1fc 100644
--- a/games/xbomb/Makefile
+++ b/games/xbomb/Makefile
@@ -21,6 +21,9 @@ post-install:
@${TOUCH} ${PREFIX}/lib/X11/xbomb/xbomb3.hi
@${TOUCH} ${PREFIX}/lib/X11/xbomb/xbomb4.hi
@${TOUCH} ${PREFIX}/lib/X11/xbomb/xbomb6.hi
- @${CHMOD} 666 ${PREFIX}/lib/X11/xbomb/xbomb?.hi
+ @${CHOWN} root:games ${PREFIX}/lib/X11/xbomb/xbomb?.hi
+ @${CHMOD} 664 ${PREFIX}/lib/X11/xbomb/xbomb?.hi
+ @${CHOWN} root:games ${PREFIX}/bin/xbomb
+ @${CHMOD} 2755 ${PREFIX}/bin/xbomb
.include <bsd.port.mk>