Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-729

Installing tomcat7-selinux and tomcat8-selinux, then removing one will break the other

    XMLWordPrintable

Details

    • Documentation (Ref Guide, User Guide, etc.), Release Notes
    • Workaround Exists
    • Hide

      In order for tomcat to run after the other selinux package has been removed you need to execute the following:

      $ /usr/sbin/semanage port -a -t http_port_t -p tcp 8005
      
      Show
      In order for tomcat to run after the other selinux package has been removed you need to execute the following: $ /usr/sbin/semanage port -a -t http_port_t -p tcp 8005

    Description

      As part of the refactoring for JWS-709 I had to add a port on rhel-6 for selinux. Adding/removing the port at install/uninstall time (mxi_port_t doesn't exist on rhel-6) creates a weird situation where you can install tomcat7-selinux and tomcat8-selinux, then remove tomcat8-selinux, which will break tomcat7 because it removes the 8005 port in the %postun.

      This jira is just here to document the issue.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-csutherl Coty Sutherland
              rhn-support-csutherl Coty Sutherland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: