[tomcat7] 03/03: Fix tomcat7.postinst

Markus Koschany apo at moszumanska.debian.org
Tue Aug 2 10:09:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository tomcat7.

commit d374af33a406aef34ba42bda36ab320955dafe02
Author: Markus Koschany <apo at debian.org>
Date:   Tue Aug 2 11:52:00 2016 +0200

    Fix tomcat7.postinst
---
 debian/tomcat7.postinst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/tomcat7.postinst b/debian/tomcat7.postinst
index a133d64..a684b65 100644
--- a/debian/tomcat7.postinst
+++ b/debian/tomcat7.postinst
@@ -45,7 +45,7 @@ case "$1" in
 	ucf --debconf-ok --sum-file /usr/share/tomcat7/logrotate.md5sum $tmpfile $LR_CONFFILE
 	rm -f $tmpfile
 
-	# configuration files should not be modifiable by tomcat8 user, as this can be a security issue
+	# configuration files should not be modifiable by tomcat7 user, as this can be a security issue
 	# (an attacker may insert code in a webapp and have access to all tomcat configuration)
 	# but those files should be readable by tomcat7, so we set the group to tomcat7
 	for i in tomcat-users.xml web.xml server.xml logging.properties context.xml catalina.properties;
@@ -57,7 +57,7 @@ case "$1" in
 	done
 	# configuration policy files should not be modifiable by the tomcat7 user. Only
 	# diverge from default permissions for known Debian files
-	chown root:$TOMCAT8_GROUP /etc/tomcat8/policy.d
+	chown root:$TOMCAT7_GROUP /etc/tomcat7/policy.d
 	for i in 01system.policy 02debian.policy 03catalina.policy 04webapps.policy 50local.policy;
 	do
 		if [ -f "/etc/tomcat7/policy.d/$i" ]; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/tomcat7.git



More information about the pkg-java-commits mailing list