Skip to content

Commit f7ac956

Browse files
github-actions[bot]Rajat Gupta
andcommitted
Add syscalls for merge operation error (#18148)
Signed-off-by: Rajat Gupta <gptrajat@amazon.com> Co-authored-by: Rajat Gupta <gptrajat@amazon.com> (cherry picked from commit 33b88a2) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent cb30055 commit f7ac956

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

distribution/packages/src/common/systemd/opensearch.service

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ LockPersonality=yes
100100
# System call filterings which restricts which system calls a process can make
101101
# @ means allowed
102102
# ~ means not allowed
103+
# These syscalls are related to mmap which is needed for OpenSearch Services
104+
SystemCallFilter=madvise mincore mlock mlock2 munlock get_mempolicy sched_getaffinity sched_setaffinity fcntl
103105
SystemCallFilter=@system-service
104106
SystemCallFilter=~@reboot
105107
SystemCallFilter=~@swap
@@ -138,7 +140,7 @@ ReadWritePaths=-/etc/opensearch
138140
ReadWritePaths=-/mnt/snapshots
139141

140142
## Allow read access to system files
141-
ReadOnlyPaths=/etc/os-release /usr/lib/os-release /etc/system-release
143+
ReadOnlyPaths=-/etc/os-release -/usr/lib/os-release -/etc/system-release
142144

143145
## Allow read access to Linux IO stats
144146
ReadOnlyPaths=/proc/self/mountinfo /proc/diskstats

0 commit comments

Comments
 (0)