Skip to content

Commit 2975205

Browse files
Fix access denied error when rolling log files (#18597)
Signed-off-by: Yongheng Liu <liuyonghengheng@gmail.com>
1 parent b8a3e8b commit 2975205

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2121
- Avoid NPE if on SnapshotInfo if 'shallow' boolean not present ([#18187](https://github.com/opensearch-project/OpenSearch/issues/18187))
2222
- Null check field names in QueryStringQueryBuilder ([#18194](https://github.com/opensearch-project/OpenSearch/pull/18194))
2323
- Fix illegal argument exception when creating a PIT ([#16781](https://github.com/opensearch-project/OpenSearch/pull/16781))
24+
- Fix the bug of Access denied error when rolling log files ([#18597](https://github.com/opensearch-project/OpenSearch/pull/18597))
2425

2526
### Security
2627

server/src/main/resources/org/opensearch/bootstrap/security.policy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,7 @@ grant {
195195
permission java.io.FilePermission "/sys/fs/cgroup/cpuacct/-", "read";
196196
permission java.io.FilePermission "/sys/fs/cgroup/memory", "read";
197197
permission java.io.FilePermission "/sys/fs/cgroup/memory/-", "read";
198+
199+
// needed by log rolling
200+
permission java.lang.RuntimePermission "accessUserInformation";
198201
};

0 commit comments

Comments
 (0)