You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.3 KiB
30 lines
1.3 KiB
grant {
|
|
// needed for multiple server implementations used in tests
|
|
permission java.net.SocketPermission "*", "accept,connect";
|
|
|
|
// needed for Windows named pipes in machine learning
|
|
permission java.io.FilePermission "\\\\.\\pipe\\*", "read,write";
|
|
};
|
|
|
|
grant codeBase "${codebase.netty-common}" {
|
|
// for reading the system-wide configuration for the backlog of established sockets
|
|
permission java.io.FilePermission "/proc/sys/net/core/somaxconn", "read";
|
|
// Netty sets custom classloader for some of its internal threads
|
|
permission java.lang.RuntimePermission "*", "setContextClassLoader";
|
|
};
|
|
|
|
grant codeBase "${codebase.netty-transport}" {
|
|
// Netty NioEventLoop 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";
|
|
};
|
|
|
|
grant codeBase "${codebase.elasticsearch-rest-client}" {
|
|
// rest client uses system properties which gets the default proxy
|
|
permission java.net.NetPermission "getProxySelector";
|
|
};
|
|
|
|
grant codeBase "${codebase.httpasyncclient}" {
|
|
// rest client uses system properties which gets the default proxy
|
|
permission java.net.NetPermission "getProxySelector";
|
|
}; |