tomcat/tomcat-9.0-catalina-policy.patch

26 lines
977 B
Diff
Raw Normal View History

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