Skip to content

Commit 1fb7558

Browse files
committed
just one file entitlement
1 parent 2b83446 commit 1fb7558

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/bootstrap/HardcodedEntitlements.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,13 @@ private static List<Scope> createServerEntitlements(Path pidFile) {
121121
new ReadJdkImageEntitlement(),
122122
// java.xml does some reflective stuff that reads calling jars, so allow reading the codebases
123123
// of any code in the system so that they can all use java.xml
124-
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(LIB, READ))),
125-
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(MODULES, READ))),
126-
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(PLUGINS, READ)))
124+
new FilesEntitlement(
125+
List.of(
126+
FilesEntitlement.FileData.ofBaseDirPath(LIB, READ),
127+
FilesEntitlement.FileData.ofBaseDirPath(MODULES, READ),
128+
FilesEntitlement.FileData.ofBaseDirPath(PLUGINS, READ)
129+
)
130+
)
127131
)
128132
),
129133
new Scope("org.apache.httpcomponents.httpclient", List.of(new OutboundNetworkEntitlement())),

0 commit comments

Comments
 (0)