mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
add load_native_libraries entitlement to java.desktop (#124852)
The ingest-attachment module uses Tika to parse some content; Tika in turn uses some libraries from java.desktop to perform its tasks. In turn, the JDK loads one (or more) native libraries for its implementation as part of class initialization. This means we need to grant load_native_libraries to java.desktop so that because AWT can load libraries for itself.
This commit is contained in:
parent
3d6eb26892
commit
b76048ddd2
1 changed files with 1 additions and 0 deletions
|
@ -213,6 +213,7 @@ public class EntitlementInitialization {
|
||||||
new FilesEntitlement(serverModuleFileDatas)
|
new FilesEntitlement(serverModuleFileDatas)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
new Scope("java.desktop", List.of(new LoadNativeLibrariesEntitlement())),
|
||||||
new Scope("org.apache.httpcomponents.httpclient", List.of(new OutboundNetworkEntitlement())),
|
new Scope("org.apache.httpcomponents.httpclient", List.of(new OutboundNetworkEntitlement())),
|
||||||
new Scope("io.netty.transport", List.of(new InboundNetworkEntitlement(), new OutboundNetworkEntitlement())),
|
new Scope("io.netty.transport", List.of(new InboundNetworkEntitlement(), new OutboundNetworkEntitlement())),
|
||||||
new Scope(
|
new Scope(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue