]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
small changes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 1 May 2007 15:36:26 +0000 (15:36 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 1 May 2007 15:36:26 +0000 (15:36 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@365 04377dda-e619-0410-9926-eae83683ac58

trunk/doc/CHANGELOG
trunk/simplepkg.SlackBuild
trunk/src/jail-commit

index 2d007019cf00b5a803c185f3d38011551940389f..d3420044f4ea06b31744d684c58ded0e2a140288 100644 (file)
@@ -1,6 +1,13 @@
 simplepkg changelog
 ===================
 
+0.5pre20
+========
+
+  - small changes
+  - jail-commit:
+    - template files security
+
 0.5pre19
 ========
 
index d5831b5766928d1b29bb5b565b5b934e1157dc73..ca4184a1fb67f6bf164ec87a92bc2456566d57d4 100755 (executable)
@@ -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"
index f2695d79016f044b254f28ccf77f5e4a663029fc..f40e5cdf851bcd29ec23487b862dd8c5430af827 100755 (executable)
@@ -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