Skip to content

Commit 12fcdd8

Browse files
authored
Some missing entitlements preventing serverless to start (#123271)
1 parent 9aaf072 commit 12fcdd8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ private static PolicyManager createPolicyManager() {
255255
new FilesEntitlement(
256256
List.of(
257257
FileData.ofPath(Path.of("/co/elastic/apm/agent/"), READ),
258-
FileData.ofPath(Path.of("/agent/co/elastic/apm/agent/"), READ)
258+
FileData.ofPath(Path.of("/agent/co/elastic/apm/agent/"), READ),
259+
FileData.ofPath(Path.of("/proc/meminfo"), READ),
260+
FileData.ofPath(Path.of("/sys/fs/cgroup/"), READ)
259261
)
260262
)
261263
);

x-pack/plugin/security/src/main/plugin-metadata/entitlement-policy.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ org.opensaml.saml.impl:
3737
- relative_path: metadata.xml
3838
relative_to: config
3939
mode: read
40+
- relative_path: "saml/"
41+
relative_to: config
42+
mode: read

0 commit comments

Comments
 (0)