"Fossies" - the Fresh Open Source Software Archive 
Member "elasticsearch-6.8.23/modules/x-pack-ml/plugin-security.policy" (6 Jan 2022, 1170 Bytes) of package /linux/www/elasticsearch-6.8.23.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 grant {
2 // needed for multiple server implementations used in tests
3 permission java.net.SocketPermission "*", "accept,connect";
4
5 // needed for Windows named pipes in machine learning
6 permission java.io.FilePermission "\\\\.\\pipe\\*", "read,write";
7 };
8
9 grant codeBase "${codebase.netty-common}" {
10 // for reading the system-wide configuration for the backlog of established sockets
11 permission java.io.FilePermission "/proc/sys/net/core/somaxconn", "read";
12 };
13
14 grant codeBase "${codebase.netty-transport}" {
15 // Netty NioEventLoop wants to change this, because of https://bugs.openjdk.java.net/browse/JDK-6427854
16 // the bug says it only happened rarely, and that its fixed, but apparently it still happens rarely!
17 permission java.util.PropertyPermission "sun.nio.ch.bugLevel", "write";
18 };
19
20 grant codeBase "${codebase.elasticsearch-rest-client}" {
21 // rest client uses system properties which gets the default proxy
22 permission java.net.NetPermission "getProxySelector";
23 };
24
25 grant codeBase "${codebase.httpasyncclient}" {
26 // rest client uses system properties which gets the default proxy
27 permission java.net.NetPermission "getProxySelector";
28 };