Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions distribution/packages/src/common/systemd/opensearch.service
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ ProtectControlGroups=yes
LockPersonality=yes


# System call filtering
# System call filterings which restricts which system calls a process can make
# @ means allowed
# @ means predefined sets
# ~ means not allowed
# These syscalls are related to mmap which is needed for OpenSearch Services
SystemCallFilter=seccomp mincore
Expand Down Expand Up @@ -149,6 +148,7 @@ ReadOnlyPaths=/proc/self/mountinfo /proc/diskstats
## Allow read access to control group stats
ReadOnlyPaths=/proc/self/cgroup /sys/fs/cgroup/cpu /sys/fs/cgroup/cpu/-
ReadOnlyPaths=/sys/fs/cgroup/cpuacct /sys/fs/cgroup/cpuacct/- /sys/fs/cgroup/memory /sys/fs/cgroup/memory/-
ReadOnlyPaths=/sys/fs/cgroup/system.slice/opensearch.service/-


RestrictNamespaces=true
Expand Down Expand Up @@ -177,4 +177,4 @@ ProtectClock=true
[Install]
WantedBy=multi-user.target

# Built for ${project.name}-${project.version} (${project.name})
# Built for ${project.name}-${project.version} (${project.name})
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ grant {
permission java.io.FilePermission "/sys/fs/cgroup/memory.swap.current", "read";
permission java.io.FilePermission "/sys/fs/cgroup/memory.max", "read";
permission java.io.FilePermission "/sys/fs/cgroup/memory.current", "read";
permission java.io.FilePermission "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.max", "read";
permission java.io.FilePermission "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.current", "read";
permission java.io.FilePermission "/sys/fs/cgroup/system.slice/opensearch.service/-", "read";

// needed by RestClientBuilder
permission java.io.FilePermission "${java.home}/lib/security/cacerts", "read";
Expand Down
Loading