"Fossies" - the Fresh Open Source Software Archive

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