Skip to content

Commit 0e5b011

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent c5d6966 commit 0e5b011

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

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

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,11 @@ private static PolicyManager createPolicyManager() {
138138
var serverPolicy = new Policy(
139139
"server",
140140
List.of(
141-
new Scope("org.elasticsearch.base",
141+
new Scope(
142+
"org.elasticsearch.base",
142143
List.of(
143144
new CreateClassLoaderEntitlement(),
144-
new FilesEntitlement(
145-
List.of(
146-
FileData.ofRelativePath(Path.of(""), FilesEntitlement.BaseDir.DATA, READ_WRITE)
147-
)
148-
)
145+
new FilesEntitlement(List.of(FileData.ofRelativePath(Path.of(""), FilesEntitlement.BaseDir.DATA, READ_WRITE)))
149146
)
150147
),
151148
new Scope("org.elasticsearch.xcontent", List.of(new CreateClassLoaderEntitlement())),
@@ -185,7 +182,7 @@ private static PolicyManager createPolicyManager() {
185182
FileData.ofPath(Path.of("/proc/self/mountinfo"), READ),
186183
FileData.ofPath(Path.of("/proc/diskstats"), READ)
187184

188-
//TODO: use FileData.ofPathSetting("repositories.fs.location", READ_WRITE)
185+
// TODO: use FileData.ofPathSetting("repositories.fs.location", READ_WRITE)
189186
)
190187
)
191188
)
@@ -208,13 +205,7 @@ private static PolicyManager createPolicyManager() {
208205
),
209206
new Scope(
210207
"org.apache.lucene.misc",
211-
List.of(
212-
new FilesEntitlement(
213-
List.of(
214-
FileData.ofRelativePath(Path.of(""), FilesEntitlement.BaseDir.DATA, READ_WRITE)
215-
)
216-
)
217-
)
208+
List.of(new FilesEntitlement(List.of(FileData.ofRelativePath(Path.of(""), FilesEntitlement.BaseDir.DATA, READ_WRITE))))
218209
),
219210
new Scope("org.apache.logging.log4j.core", List.of(new ManageThreadsEntitlement())),
220211
new Scope(

0 commit comments

Comments
 (0)