Skip to content

Commit eac1835

Browse files
committed
grant shared_data dir to lucene
1 parent ca4fd4b commit eac1835

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ private static List<Scope> createServerEntitlements(Path pidFile) {
123123
new FilesEntitlement(
124124
List.of(
125125
FilesEntitlement.FileData.ofBaseDirPath(CONFIG, READ),
126+
FilesEntitlement.FileData.ofBaseDirPath(SHARED_DATA, READ),
126127
FilesEntitlement.FileData.ofBaseDirPath(DATA, READ_WRITE)
127128
)
128129
)
@@ -131,6 +132,7 @@ private static List<Scope> createServerEntitlements(Path pidFile) {
131132
new Scope(
132133
"org.apache.lucene.misc",
133134
List.of(
135+
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(SHARED_DATA, READ_WRITE))),
134136
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(DATA, READ_WRITE))),
135137
new ReadStoreAttributesEntitlement()
136138
)
@@ -146,6 +148,7 @@ private static List<Scope> createServerEntitlements(Path pidFile) {
146148
"org.elasticsearch.nativeaccess",
147149
List.of(
148150
new LoadNativeLibrariesEntitlement(),
151+
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(SHARED_DATA, READ_WRITE))),
149152
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(DATA, READ_WRITE)))
150153
)
151154
)

0 commit comments

Comments
 (0)