|
|
9a9096 |
--- conf/catalina.policy~ 2016-06-17 10:20:17.649171968 -0400
|
|
|
9a9096 |
+++ conf/catalina.policy 2016-06-17 10:23:35.358309244 -0400
|
|
|
9a9096 |
@@ -50,6 +50,36 @@ grant codeBase "file:${java.home}/lib/ex
|
|
|
9a9096 |
permission java.security.AllPermission;
|
|
|
9a9096 |
};
|
|
|
9a9096 |
|
|
|
9a9096 |
+// ========== RHEL SPECIFIC CODE PERMISSIONS =======================================
|
|
|
9a9096 |
+
|
|
|
9a9096 |
+// Allowing everything in /usr/share/java allows too many unknowns to be permitted
|
|
|
9a9096 |
+// Specifying the individual jars that tomcat needs to function with the security manager
|
|
|
9a9096 |
+// is the safest way forward.
|
|
|
9a9096 |
+grant codeBase "file:/usr/share/java/tomcat-servlet-3.0-api.jar" {
|
|
|
9a9096 |
+ permission java.security.AllPermission;
|
|
|
9a9096 |
+};
|
|
|
9a9096 |
+grant codeBase "file:/usr/share/java/omcat-jsp-2.2-api.jar" {
|
|
|
9a9096 |
+ permission java.security.AllPermission;
|
|
|
9a9096 |
+};
|
|
|
9a9096 |
+grant codeBase "file:/usr/share/java/tomcat-el-2.2-api.jar" {
|
|
|
9a9096 |
+ permission java.security.AllPermission;
|
|
|
9a9096 |
+};
|
|
|
9a9096 |
+grant codeBase "file:/usr/share/java/log4j.jar" {
|
|
|
9a9096 |
+ permission java.security.AllPermission;
|
|
|
9a9096 |
+};
|
|
|
9a9096 |
+grant codeBase "file:/usr/share/java/ecj.jar" {
|
|
|
9a9096 |
+ permission java.security.AllPermission;
|
|
|
9a9096 |
+};
|
|
|
9a9096 |
+grant codeBase "file:/usr/share/java/apache-commons-pool.jar" {
|
|
|
9a9096 |
+ permission java.security.AllPermission;
|
|
|
9a9096 |
+};
|
|
|
9a9096 |
+grant codeBase "file:/usr/share/java/apache-commons-dbcp.jar" {
|
|
|
9a9096 |
+ permission java.security.AllPermission;
|
|
|
9a9096 |
+};
|
|
|
9a9096 |
+grant codeBase "file:/usr/share/java/apache-commons-collections.jar" {
|
|
|
9a9096 |
+ permission java.security.AllPermission;
|
|
|
9a9096 |
+};
|
|
|
9a9096 |
+
|
|
|
9a9096 |
|
|
|
9a9096 |
// ========== CATALINA CODE PERMISSIONS =======================================
|
|
|
9a9096 |
|