Bug#821391: tomcat8: postinst script overwrites file permissions in /etc

Markus Koschany apo at debian.org
Sun May 29 21:46:15 UTC 2016


clone 821391 -1
reassign -1 src:tomcat8
retitle -1 tomcat8: postinst script overwrites file permissions in /etc
thanks

This bug also affects Tomcat 8.


I have prepared another security update and I intend to change the
current behavior in Jessie and Sid for new installations to avoid
similar breakage when upgrading Tomcat 8.

Currently tomcat8.postinst changes file ownership of all files in
/etc/tomcat8 to root:tomcat8. I think this isn't necessary because the
default is to use root:root (rw-r-r) which ensures that all
configuration files can still be read by Tomcat8. The only security
relevant file is /etc/tomcat8/tomcat-users.xml in the default Debian
configuration. I propose to modify only this one by changing the line

chown -Rh root:$TOMCAT8_GROUP /etc/tomcat8/*

to

chown root:$TOMCAT8_GROUP /etc/tomcat8/tomcat-users.xml


This should address the issue.

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20160529/9d8c86d3/attachment.sig>


More information about the pkg-java-maintainers mailing list