Description of the problem: There are 2 problems in tomcat6 and tomcat7 postinstall scriptlets: - semodule is called as /usr/bin/semodule which doesn't exist (instead of /usr/sbin/semodule) - there is wrong path for module installation (%/selinux/packages/tomcat...) Version-Release number of selected component (if applicable): RHEL5: # rpm -q tomcat6 tomcat7 tomcat6-6.0.35-13_patch_07.ep6.el5 tomcat7-7.0.30-6_patch_03.ep6.el5 RHEL6: # rpm -q tomcat6 tomcat7 tomcat6-6.0.35-33_patch_07.ep6.el6.noarch tomcat7-7.0.30-7_patch_03.ep6.el6.noarch Steps to Reproduce: # rpm -q --scripts tomcat6 tomcat7 | grep 'semodule -i' Actual results: RHEL5: /usr/sbin/semodule -i %/selinux/packages/tomcat6/tomcat6.pp 2>/dev/null ||: /usr/sbin/semodule -i /etc/tomcat7/selinux/packages/tomcat7/tomcat7.pp 2>/dev/null ||: RHEL6: /usr/sbin/semodule -i %/selinux/packages/tomcat6/tomcat6.pp 2>/dev/null ||: /usr/bin/semodule -i %/selinux/packages/tomcat7/tomcat7.pp 2>/dev/null ||: Expected results: RHEL5: /usr/sbin/semodule -i /etc/tomcat6/selinux/packages/tomcat6/tomcat6.pp 2>/dev/null ||: /usr/sbin/semodule -i /etc/tomcat7/selinux/packages/tomcat7/tomcat7.pp 2>/dev/null ||: RHEL6: /usr/sbin/semodule -i /etc/tomcat6/selinux/packages/tomcat6/tomcat6.pp 2>/dev/null ||: /usr/sbin/semodule -i /etc/tomcat6/selinux/packages/tomcat7/tomcat7.pp 2>/dev/null ||:
Confirmed with Jean-Frederic, this one is fixed.
VERIFIED on: tomcat6-6.0.37-3_patch_01.ep6.el6 tomcat6-6.0.37-3_patch_01.ep6.el5 tomcat7-7.0.40-1_patch_01.ep6.el6 tomcat7-7.0.40-2_patch_01.ep6.el5