aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/jail-commit
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/jail-commit')
-rwxr-xr-xtrunk/src/jail-commit5
1 files changed, 5 insertions, 0 deletions
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