From 3062b22a91f5b3e19cc3988c6cc2eeeb1c77af3d Mon Sep 17 00:00:00 2001 From: rhatto Date: Tue, 1 May 2007 15:36:26 +0000 Subject: small changes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@365 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/jail-commit | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'trunk/src/jail-commit') 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 -- cgit v1.2.3