Skip to content

Commit 2f0e1da

Browse files
authored
Missing log4j policy (#123360)
1 parent d0db4cd commit 2f0e1da

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ private static PolicyManager createPolicyManager() {
222222
"org.apache.lucene.misc",
223223
List.of(new FilesEntitlement(List.of(FileData.ofRelativePath(Path.of(""), DATA, READ_WRITE))))
224224
),
225-
new Scope("org.apache.logging.log4j.core", List.of(new ManageThreadsEntitlement())),
225+
new Scope(
226+
"org.apache.logging.log4j.core",
227+
List.of(new ManageThreadsEntitlement(), new FilesEntitlement(List.of(FileData.ofPath(bootstrapArgs.logsDir(), READ_WRITE))))
228+
),
226229
new Scope(
227230
"org.elasticsearch.nativeaccess",
228231
List.of(

0 commit comments

Comments
 (0)