Skip to content

Commit 3d954a9

Browse files
committed
Clean up
1 parent 4efb74c commit 3d954a9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

modules/repository-azure/src/main/plugin-metadata/plugin-security.policy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ grant {
1212
permission java.net.SocketPermission "*", "connect";
1313
// io.netty.util.concurrent.GlobalEventExecutor.startThread
1414
permission java.lang.RuntimePermission "setContextClassLoader";
15+
// io.netty.util.concurrent.GlobalEventExecutor.startThread
1516
permission java.lang.RuntimePermission "getClassLoader";
1617
// Used by jackson bean deserialization
1718
permission java.lang.RuntimePermission "accessDeclaredMembers";

modules/transport-netty4/src/main/plugin-metadata/plugin-security.policy

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ grant codeBase "${codebase.netty-common}" {
1414
// netty makes and accepts socket connections
1515
permission java.net.SocketPermission "*", "accept,connect";
1616

17-
// Netty sets custom classloader for some of its internal threads
17+
// Netty gets and sets classloaders for some of its internal threads
1818
permission java.lang.RuntimePermission "setContextClassLoader";
19-
20-
// Netty also gets the classloader for some of its internal threads
2119
permission java.lang.RuntimePermission "getClassLoader";
2220
};
2321

@@ -26,8 +24,3 @@ grant codeBase "${codebase.netty-transport}" {
2624
// the bug says it only happened rarely, and that its fixed, but apparently it still happens rarely!
2725
permission java.util.PropertyPermission "sun.nio.ch.bugLevel", "write";
2826
};
29-
30-
grant {
31-
// Netty also gets the classloader for some of its internal threads
32-
permission java.lang.RuntimePermission "getClassLoader";
33-
}

0 commit comments

Comments
 (0)