"Fossies" - the Fresh Open Source Software Archive 
Member "elasticsearch-6.8.23/modules/x-pack-watcher/plugin-security.policy" (6 Jan 2022, 1613 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 // required to configure the custom mailcap for watcher
3 permission java.lang.RuntimePermission "setFactory";
4
5 // needed when sending emails for javax.activation
6 // otherwise a classnotfound exception is thrown due to trying
7 // to load the class with the application class loader
8 permission java.lang.RuntimePermission "setContextClassLoader";
9 permission java.lang.RuntimePermission "getClassLoader";
10 // TODO: remove use of this jar as soon as possible!!!!
11 permission java.lang.RuntimePermission "accessClassInPackage.com.sun.activation.registries";
12
13 // needed for multiple server implementations used in tests
14 permission java.net.SocketPermission "*", "accept,connect";
15 };
16
17 grant codeBase "${codebase.netty-common}" {
18 // for reading the system-wide configuration for the backlog of established sockets
19 permission java.io.FilePermission "/proc/sys/net/core/somaxconn", "read";
20 };
21
22 grant codeBase "${codebase.netty-transport}" {
23 // Netty NioEventLoop wants to change this, because of https://bugs.openjdk.java.net/browse/JDK-6427854
24 // the bug says it only happened rarely, and that its fixed, but apparently it still happens rarely!
25 permission java.util.PropertyPermission "sun.nio.ch.bugLevel", "write";
26 };
27
28 grant codeBase "${codebase.elasticsearch-rest-client}" {
29 // rest client uses system properties which gets the default proxy
30 permission java.net.NetPermission "getProxySelector";
31 };
32
33 grant codeBase "${codebase.httpasyncclient}" {
34 // rest client uses system properties which gets the default proxy
35 permission java.net.NetPermission "getProxySelector";
36 };