test/jdk/java/util/logging/LogManager/Configuration/rootLoggerHandlers/test.policy
author dfuchs
Fri, 26 Jan 2018 14:15:09 +0000
changeset 48674 e2a7856edfba
permissions -rw-r--r--
8195096: Exception printed on console with custom LogManager on starting Apache Tomcat Summary: make sure that loadLoggerHandler for ".handler" is called only from within addLogger Reviewed-by: mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
48674
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
     1
grant {
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
     2
    // permissions for RootLoggerHandlers
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
     3
    permission java.util.PropertyPermission "*", "read";
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
     4
    permission java.util.PropertyPermission "java.util.logging.config.file", "write";
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
     5
    permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
     6
    permission java.util.logging.LoggingPermission "control";
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
     7
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
     8
    // additional permissions for BadRootLoggerHandlers
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
     9
    permission java.util.PropertyPermission "java.util.logging.manager", "write";
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
    10
    permission java.lang.RuntimePermission "setIO";
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
    11
    permission java.lang.RuntimePermission "shutdownHooks";
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
    12
    permission java.lang.RuntimePermission "setContextClassLoader";
e2a7856edfba 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
dfuchs
parents:
diff changeset
    13
};