Skip to content

Commit 2151272

Browse files
authored
Missing log4j policy (#123360) (#123367)
1 parent f2d8f7d commit 2151272

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ private static PolicyManager createPolicyManager() {
218218
"org.apache.lucene.misc",
219219
List.of(new FilesEntitlement(List.of(FileData.ofRelativePath(Path.of(""), DATA, READ_WRITE))))
220220
),
221-
new Scope("org.apache.logging.log4j.core", List.of(new ManageThreadsEntitlement())),
221+
new Scope(
222+
"org.apache.logging.log4j.core",
223+
List.of(new ManageThreadsEntitlement(), new FilesEntitlement(List.of(FileData.ofPath(bootstrapArgs.logsDir(), READ_WRITE))))
224+
),
222225
new Scope(
223226
"org.elasticsearch.nativeaccess",
224227
List.of(

0 commit comments

Comments
 (0)