Skip to content

Commit 6dfd935

Browse files
committed
Fix after merge
1 parent b5a27a7 commit 6dfd935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/initialization/EntitlementInitialization.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private static PolicyManager createPolicyManager() {
148148
new OutboundNetworkEntitlement(),
149149
new LoadNativeLibrariesEntitlement(),
150150
new FilesEntitlement(
151-
List.of(new FilesEntitlement.FileData(EntitlementBootstrap.bootstrapArgs().tempDir().toString(), READ_WRITE))
151+
List.of(FilesEntitlement.FileData.ofPath(EntitlementBootstrap.bootstrapArgs().tempDir(), READ_WRITE))
152152
)
153153
)
154154
),
@@ -159,7 +159,7 @@ private static PolicyManager createPolicyManager() {
159159
"org.elasticsearch.nativeaccess",
160160
List.of(
161161
new LoadNativeLibrariesEntitlement(),
162-
new FilesEntitlement(Arrays.stream(dataDirs).map(d -> FileData.ofPath(Path.of(d.toString()), READ_WRITE)).toList())
162+
new FilesEntitlement(Arrays.stream(dataDirs).map(d -> FileData.ofPath(d, READ_WRITE)).toList())
163163
)
164164
)
165165
)

0 commit comments

Comments
 (0)