jw项目windows环境软件安装
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.4 KiB

1 year ago
  1. grant {
  2. // bouncy castle
  3. permission java.security.SecurityPermission "putProviderProperty.BC";
  4. // needed in (cf. o.e.x.c.s.s.RestorableContextClassLoader)
  5. permission java.lang.RuntimePermission "getClassLoader";
  6. permission java.lang.RuntimePermission "setContextClassLoader";
  7. // needed for multiple server implementations used in tests
  8. permission java.net.SocketPermission "*", "accept,connect";
  9. // needed because of problems in unbound LDAP library
  10. permission java.util.PropertyPermission "*", "read,write";
  11. };
  12. grant codeBase "${codebase.netty-common}" {
  13. // for reading the system-wide configuration for the backlog of established sockets
  14. permission java.io.FilePermission "/proc/sys/net/core/somaxconn", "read";
  15. // Netty sets custom classloader for some of its internal threads
  16. permission java.lang.RuntimePermission "setContextClassLoader";
  17. };
  18. grant codeBase "${codebase.netty-transport}" {
  19. // Netty NioEventLoop wants to change this, because of https://bugs.openjdk.java.net/browse/JDK-6427854
  20. // the bug says it only happened rarely, and that its fixed, but apparently it still happens rarely!
  21. permission java.util.PropertyPermission "sun.nio.ch.bugLevel", "write";
  22. };
  23. grant codeBase "${codebase.httpasyncclient}" {
  24. // rest client uses system properties which gets the default proxy
  25. permission java.net.NetPermission "getProxySelector";
  26. };