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

Tomcat8: Unable to compile selinux policies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JWS 3.0.1 CR1
    • JWS 3.0.0 CR3.1
    • tomcat8
    • None
    • Release Notes
    • Hide
      Errors were thrown when attempting to compile the SELinux policies for Tomcat 8 on Red Hat Enterprise Linux 7.

      The SELinux policies for Tomcat 8 on Red Hat Enterprise Linux 7 have been fixed in this release of JBoss Web Server, and should compile successfully.
      Show
      Errors were thrown when attempting to compile the SELinux policies for Tomcat 8 on Red Hat Enterprise Linux 7. The SELinux policies for Tomcat 8 on Red Hat Enterprise Linux 7 have been fixed in this release of JBoss Web Server, and should compile successfully.
    • Documented as Resolved Issue

      The code documented in JWS30 Installtion guide fails on RHEL7:

      [root@hp-dl165g6-01 ~]#cd /etc/tomcat8/selinux/packages/tomcat8
      [root@hp-dl165g6-01 tomcat8]# make -f /usr/share/selinux/devel/Makefile
      Compiling targeted tomcat8 module
      /usr/bin/checkmodule:  loading policy configuration from tmp/tomcat8.tmp
      tomcat8.te":78:ERROR 'unknown type tomcat7_domain' at token ';' on line 6151:
      #line 78
              typeattribute tomcat7_domain kernel_system_state_reader;
      /usr/bin/checkmodule:  error(s) encountered while parsing configuration
      make: *** [tmp/tomcat8.mod] Error 1
      

      The second problem is that the files tomcat8.fc, tomcat8.if, tomcat8.te contains tomcat7 strings instead of tomcat8 on both RHEL6 and RHEL7.

              dknox_jira David Knox (Inactive)
              lfuka Libor Fuka
              Filip Goldefus Filip Goldefus (Inactive)
              Lucas Costi Lucas Costi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: