diff options
author | Eric Hameleers <alien@slackware.com> | 2007-01-08 11:25:04 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2007-01-08 11:25:04 +0000 |
commit | 912f229c2dcc97053966bf90a75f603fc78e996e (patch) | |
tree | a8a361cf54dbd683f03e4f9955dc5f134af8cfe8 /vnc | |
parent | 8635df5223d85781a9934917174a359fdbd482ba (diff) | |
download | asb-912f229c2dcc97053966bf90a75f603fc78e996e.tar.gz asb-912f229c2dcc97053966bf90a75f603fc78e996e.tar.xz |
Make sure that no group writable directories remain
Diffstat (limited to 'vnc')
-rwxr-xr-x | vnc/build/vnc.SlackBuild | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/vnc/build/vnc.SlackBuild b/vnc/build/vnc.SlackBuild index ac85bf09..abbd57d3 100755 --- a/vnc/build/vnc.SlackBuild +++ b/vnc/build/vnc.SlackBuild @@ -20,6 +20,9 @@ # refused to run. Fixed this in _vnc.tar.gz. # 4.1.2-1: 21/nov/2006 by Eric Hameleers # * The 4.1.2 is a security fix. +# 4.1.2-2: 08/jan/2007 by Eric Hameleers +# * Fixed group-writable directories in the package (sendmail would +# stop working after install of the vnc package). # # ----------------------------------------------------------------------------- # @@ -42,15 +45,19 @@ SRCVER=4_1_2 VERSION=4.1.2 SUB=x86_linux ARCH=i486 -BUILD=1 +BUILD=2 PKG=$TMP/package-$PRGNAM if [ ! -d $TMP/tmp-$PRGNAM ]; then mkdir -p $TMP/tmp-$PRGNAM # location to build the source +else + rm -rf $TMP/tmp-$PRGNAM/* fi if [ ! -d $PKG ]; then mkdir -p $PKG # place for the package to be built +else + rm -rf $PKG/* fi @@ -61,8 +68,6 @@ echo "++" echo "|| $PRGNAM-$VERSION" echo "++" -rm -rf $PKG/* - # Explode the package framework: cd $PKG explodepkg $CWD/_$PRGNAM.tar.gz @@ -79,6 +84,11 @@ mv ${PRGNAM}-${SRCVER}-${SUB} ${PRGNAM}-${VERSION} cd ${PRGNAM}-${VERSION} chown -R root:root * +find . -perm 777 -exec chmod 755 {} \; +find . -perm 666 -exec chmod 644 {} \; +find . -perm 775 -exec chmod 755 {} \; +find . -perm 664 -exec chmod 644 {} \; + #cp -a Xvnc vncconnect vncpasswd vncserver vncviewer $PKG/usr/bin #chmod 555 $PKG/usr/bin/* @@ -86,9 +96,10 @@ chown -R root:root * ./vncinstall $PKG/usr/bin $PKG/usr/man $PKG/usr/X11R6/lib/modules/extensions cp -a java/* $PKG/usr/share/vnc/classes/ +chmod 644 $PKG/usr/share/vnc/classes/* cp -a $CWD/Vncviewer.ad-$VERSION $PKG/usr/lib/X11/app-defaults/Vncviewer -chmod 444 $PKG/usr/lib/X11/app-defaults/Vncviewer +chmod 644 $PKG/usr/lib/X11/app-defaults/Vncviewer # --- DOCUMENTATION --- |