aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trunk/doc/CHANGELOG7
-rwxr-xr-xtrunk/simplepkg.SlackBuild2
-rwxr-xr-xtrunk/src/jail-commit5
3 files changed, 13 insertions, 1 deletions
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