forked from ISTI-ansible-roles/ansible-roles
60 lines
3.1 KiB
Plaintext
60 lines
3.1 KiB
Plaintext
// ========== WEB APPLICATION PERMISSIONS =====================================
|
|
|
|
|
|
// These permissions are granted by default to all web applications
|
|
// In addition, a web application will be given a read FilePermission
|
|
// and JndiPermission for all files and directories in its document root.
|
|
grant {
|
|
// Required for JNDI lookup of named JDBC DataSource's and
|
|
// javamail named MimePart DataSource used to send mail
|
|
permission java.util.PropertyPermission "java.home", "read";
|
|
permission java.util.PropertyPermission "java.naming.*", "read";
|
|
permission java.util.PropertyPermission "javax.sql.*", "read";
|
|
|
|
// OS Specific properties to allow read access
|
|
permission java.util.PropertyPermission "os.name", "read";
|
|
permission java.util.PropertyPermission "os.version", "read";
|
|
permission java.util.PropertyPermission "os.arch", "read";
|
|
permission java.util.PropertyPermission "file.separator", "read";
|
|
permission java.util.PropertyPermission "path.separator", "read";
|
|
permission java.util.PropertyPermission "line.separator", "read";
|
|
|
|
// JVM properties to allow read access
|
|
permission java.util.PropertyPermission "java.version", "read";
|
|
permission java.util.PropertyPermission "java.vendor", "read";
|
|
permission java.util.PropertyPermission "java.vendor.url", "read";
|
|
permission java.util.PropertyPermission "java.class.version", "read";
|
|
permission java.util.PropertyPermission "java.specification.version", "read";
|
|
permission java.util.PropertyPermission "java.specification.vendor", "read";
|
|
permission java.util.PropertyPermission "java.specification.name", "read";
|
|
|
|
permission java.util.PropertyPermission "java.vm.specification.version", "read";
|
|
permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
|
|
permission java.util.PropertyPermission "java.vm.specification.name", "read";
|
|
permission java.util.PropertyPermission "java.vm.version", "read";
|
|
permission java.util.PropertyPermission "java.vm.vendor", "read";
|
|
permission java.util.PropertyPermission "java.vm.name", "read";
|
|
|
|
// Required for OpenJMX
|
|
permission java.lang.RuntimePermission "getAttribute";
|
|
|
|
// Allow read of JAXP compliant XML parser debug
|
|
permission java.util.PropertyPermission "jaxp.debug", "read";
|
|
|
|
// Precompiled JSPs need access to this package.
|
|
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.runtime";
|
|
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.runtime.*";
|
|
|
|
// Example JSPs need those to work properly
|
|
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.el";
|
|
permission java.lang.RuntimePermission "accessDeclaredMembers";
|
|
|
|
// Precompiled JSPs need access to this system property.
|
|
permission java.util.PropertyPermission "org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER", "read";
|
|
|
|
// java.io.tmpdir should be usable as a temporary file directory
|
|
permission java.util.PropertyPermission "java.io.tmpdir", "read";
|
|
permission java.io.FilePermission "${java.io.tmpdir}/-", "read,write,delete";
|
|
|
|
};
|