-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ranger Tsao <[email protected]>
- Loading branch information
Showing
3 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
grant { | ||
// HanLP data directories | ||
permission java.io.FilePermission "<<ALL FILES>>", "read,write"; | ||
|
||
// needed because of problems in unbound LDAP library | ||
permission java.util.PropertyPermission "*", "read,write"; | ||
|
||
// needed to set expert SSL options, etc | ||
permission java.lang.RuntimePermission "setFactory"; | ||
permission javax.net.ssl.SSLPermission "setHostnameVerifier"; | ||
|
||
// needed when sending emails for javax.activation | ||
// otherwise a classnotfound exception is thrown due to trying | ||
// to load the class with the application class loader | ||
permission java.lang.RuntimePermission "setContextClassLoader"; | ||
permission java.lang.RuntimePermission "getClassLoader"; | ||
// TODO: remove use of this jar as soon as possible!!!! | ||
permission java.lang.RuntimePermission "accessClassInPackage.com.sun.activation.registries"; | ||
|
||
// bouncy castle | ||
permission java.lang.RuntimePermission "accessClassInPackage.sun.misc"; | ||
permission java.lang.RuntimePermission "accessClassInPackage.sun.reflect"; | ||
permission java.lang.RuntimePermission "reflectionFactoryAccess"; | ||
permission java.lang.RuntimePermission "accessDeclaredMembers"; | ||
permission java.lang.RuntimePermission "accessClassInPackage.sun.jdbc.odbc"; | ||
permission java.security.SecurityPermission "putProviderProperty.BC"; | ||
|
||
// needed for x-pack security extension | ||
permission java.security.SecurityPermission "createPolicy.JavaPolicy"; | ||
permission java.security.SecurityPermission "getPolicy"; | ||
permission java.security.SecurityPermission "setPolicy"; | ||
|
||
// Netty SelectorUtil wants to change this, because of https://bugs.openjdk.java.net/browse/JDK-6427854 | ||
// the bug says it only happened rarely, and that its fixed, but apparently it still happens rarely! | ||
permission java.util.PropertyPermission "sun.nio.ch.bugLevel", "write"; | ||
permission java.util.PropertyPermission "*","read,write"; | ||
permission java.util.PropertyPermission "file.encoding", "read"; | ||
permission java.util.PropertyPermission "user.dir ", "read "; | ||
permission java.util.PropertyPermission "user.home ", "read "; | ||
permission java.util.PropertyPermission "java.home ", "read "; | ||
permission java.util.PropertyPermission "java.class.path ", "read "; | ||
permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; | ||
permission javax.net.ssl.SSLPermission "setHostnameVerifier"; | ||
permission org.elasticsearch.script.ClassPermission "com.hankcs.*"; | ||
permission org.elasticsearch.script.ClassPermission "org.elasticsearch.*"; | ||
/// permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.ref"; | ||
}; |