Remove unnecessary network entitlements from server (#126799)

These entitlements should not be necessary. Server does not directly
create any outbound connections, and netty is not a dependency of server
so it should not exist within the server policy.
This commit is contained in:
Ryan Ernst 2025-04-15 11:39:29 -07:00 committed by GitHub
parent d3d40db062
commit bf53927d71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -230,7 +230,6 @@ public class EntitlementInitialization {
new ReadStoreAttributesEntitlement(),
new CreateClassLoaderEntitlement(),
new InboundNetworkEntitlement(),
new OutboundNetworkEntitlement(),
new LoadNativeLibrariesEntitlement(),
new ManageThreadsEntitlement(),
new FilesEntitlement(serverModuleFileDatas)
@ -238,7 +237,6 @@ public class EntitlementInitialization {
),
new Scope("java.desktop", List.of(new LoadNativeLibrariesEntitlement())),
new Scope("org.apache.httpcomponents.httpclient", List.of(new OutboundNetworkEntitlement())),
new Scope("io.netty.transport", List.of(new InboundNetworkEntitlement(), new OutboundNetworkEntitlement())),
new Scope(
"org.apache.lucene.core",
List.of(