Unable to grant "java.net.NetPermission" "getProxySelector" for plugin

Hi,

I added this to my plugin-security.policy:

grant {
  ...
  permission  java.net.NetPermission "getProxySelector";
}

ES (docker 6.5.4) apparently loads it:

[INFO] DOCKER> * java.lang.RuntimePermission accessDeclaredMembers
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.net.NetPermission getProxySelector
* java.net.SocketPermission * connect,resolve
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.

But it still fails to start:

docker-elasticsearch> [2019-01-24T02:55:37,222][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [3ucx5eY] uncaught exception in thread [main]
docker-elasticsearch> org.elasticsearch.bootstrap.StartupException: java.security.AccessControlException: access denied ("java.net.NetPermission" "getProxySelector")

Is there anything I missed?

Thanks,
Li

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.