"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/modules/x-pack-core/plugin-security.policy" (6 Jan 2022, 1574 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   // bouncy castle
    3   permission java.security.SecurityPermission "putProviderProperty.BC";
    4 
    5   // needed for x-pack security extension
    6   permission java.security.SecurityPermission "createPolicy.JavaPolicy";
    7   permission java.security.SecurityPermission "getPolicy";
    8   permission java.security.SecurityPermission "setPolicy";
    9   permission java.util.PropertyPermission "*", "read,write";
   10 
   11   // needed for multiple server implementations used in tests
   12   permission java.net.SocketPermission "*", "accept,connect";
   13 };
   14 
   15 grant codeBase "${codebase.netty-common}" {
   16    // for reading the system-wide configuration for the backlog of established sockets
   17    permission java.io.FilePermission "/proc/sys/net/core/somaxconn", "read";
   18    // Netty sets custom classloader for some of its internal threads
   19    permission java.lang.RuntimePermission "*", "setContextClassLoader";
   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 };