Skip to content

Commit 013e649

Browse files
committed
More OsProbe
1 parent 3a9c288 commit 013e649

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,20 @@ private static PolicyManager createPolicyManager() {
152152
FileData.ofPath(bootstrapArgs.tempDir(), READ_WRITE),
153153
FileData.ofPath(bootstrapArgs.configDir(), READ_WRITE),
154154
FileData.ofPath(bootstrapArgs.logsDir(), READ_WRITE),
155-
FileData.ofPath(Path.of("/etc/os-release"), READ), // for OsProbe
156-
FileData.ofPath(Path.of("/usr/lib/os-release"), READ), // for OsProbe
155+
// for OsProbe
156+
FileData.ofPath(Path.of("/etc/os-release"), READ),
157+
FileData.ofPath(Path.of("/usr/lib/os-release"), READ),
158+
FileData.ofPath(Path.of("/etc/system-release"), READ),
159+
FileData.ofPath(Path.of("/proc/meminfo"), READ),
160+
FileData.ofPath(Path.of("/sys/fs/cgroup/"), READ),
161+
FileData.ofPath(Path.of("/proc/self/"), READ),
162+
FileData.ofPath(Path.of("/proc/loadavg"), READ),
163+
// for BootstrapCheck
157164
FileData.ofPath(Path.of("/proc/sys/vm/max_map_count"), READ),
165+
// for ESFileStore
166+
FileData.ofPath(Path.of("/proc/self/mountinfo"), READ),
167+
FileData.ofPath(Path.of("/proc/diskstats"), READ),
168+
158169
FileData.ofRelativePath(Path.of(""), FilesEntitlement.BaseDir.DATA, READ_WRITE)
159170
)
160171
)

0 commit comments

Comments
 (0)