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