Blame SOURCES/tomcat-9.0-catalina-policy.patch

9d02a3
--- conf/catalina.policy.orig	2022-11-04 16:17:41.227506990 +0800
9d02a3
+++ conf/catalina.policy	2022-11-04 16:21:51.393351415 +0800
9d02a3
@@ -56,6 +56,15 @@ grant codeBase "file:${java.home}/lib/ex
9d02a3
 //        permission java.security.AllPermission;
9d02a3
 //};
9d02a3
 
9d02a3
+// ========== RHEL SPECIFIC CODE PERMISSIONS =======================================
9d02a3
+
9d02a3
+
9d02a3
+// Allowing everything in /usr/share/java allows too many unknowns to be permitted
9d02a3
+// Specifying the individual jars that tomcat needs to function with the security manager
9d02a3
+// is the safest way forward.
9d02a3
+grant codeBase "file:/usr/share/java/ecj/ecj.jar" {
9d02a3
+        permission java.security.AllPermission;
9d02a3
+};
9d02a3
 
9d02a3
 // ========== CATALINA CODE PERMISSIONS =======================================
9d02a3
 
9d02a3
@@ -261,4 +270,4 @@ grant codeBase "file:${catalina.home}/we
9d02a3
 //
9d02a3
 // The permissions granted to a specific JAR
9d02a3
 // grant codeBase "war:file:${catalina.base}/webapps/examples.war*/WEB-INF/lib/foo.jar" {
9d02a3
-// };
9d02a3
\ No newline at end of file
9d02a3
+// };