File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
libs/entitlement/src/main/java/org/elasticsearch/entitlement/bootstrap Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,13 @@ private static List<Scope> createServerEntitlements(Path pidFile) {
115115 )
116116 ),
117117 new Scope ("java.desktop" , List .of (new LoadNativeLibrariesEntitlement ())),
118- new Scope ("java.xml" , List .of (new ReadJdkImageEntitlement ())),
118+ new Scope ("java.xml" , List .of (
119+ new ReadJdkImageEntitlement (),
120+ // java.xml does some reflective stuff that reads calling jars, so allow reading the codebases
121+ // of any code in the system so that they can all use java.xml
122+ new FilesEntitlement (List .of (FilesEntitlement .FileData .ofBaseDirPath (LIB , READ ))),
123+ new FilesEntitlement (List .of (FilesEntitlement .FileData .ofBaseDirPath (MODULES , READ ))),
124+ new FilesEntitlement (List .of (FilesEntitlement .FileData .ofBaseDirPath (PLUGINS , READ ))))),
119125 new Scope ("org.apache.httpcomponents.httpclient" , List .of (new OutboundNetworkEntitlement ())),
120126 new Scope (
121127 "org.apache.lucene.core" ,
You can’t perform that action at this time.
0 commit comments