From: rhatto Date: Tue, 1 May 2007 15:36:26 +0000 (+0000) Subject: small changes X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3062b22a91f5b3e19cc3988c6cc2eeeb1c77af3d;p=simplepkg.git small changes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@365 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/trunk/doc/CHANGELOG b/trunk/doc/CHANGELOG index 2d00701..d342004 100644 --- a/trunk/doc/CHANGELOG +++ b/trunk/doc/CHANGELOG @@ -1,6 +1,13 @@ simplepkg changelog =================== +0.5pre20 +======== + + - small changes + - jail-commit: + - template files security + 0.5pre19 ======== diff --git a/trunk/simplepkg.SlackBuild b/trunk/simplepkg.SlackBuild index d5831b5..ca4184a 100755 --- a/trunk/simplepkg.SlackBuild +++ b/trunk/simplepkg.SlackBuild @@ -6,7 +6,7 @@ PACKAGE="simplepkg" PACK_DIR="package-$PACKAGE" BUILD=${BUILD:=1rha} -VERSION="0.5pre19" +VERSION="0.5pre20" ARCH="noarch" LIBEXEC="/usr/libexec/$PACKAGE" BINDIR="/usr/bin" diff --git a/trunk/src/jail-commit b/trunk/src/jail-commit index f2695d7..f40e5cd 100755 --- a/trunk/src/jail-commit +++ b/trunk/src/jail-commit @@ -69,6 +69,11 @@ function template_merge { perms="`numeric_perm $1/$file`" owner="`get_owner $1/$file`" group="`get_group $1/$file`" + + # secure the file + chown root.root $TEMPLATE_BASE.d/$file + chmod $perms $TEMPLATE_BASE.d/$file + echo "$file;$owner;$group;$perms" >> $TEMPLATE_BASE.perms.tmp else