Skip to content

Commit 84b98e1

Browse files
fix: add cap_setpcap at elastic-agent binary
1 parent dc53f87 commit 84b98e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ RUN mkdir /app && \
144144
{{- end }}
145145

146146
# Keep this after any chown command, chown resets any applied capabilities
147-
RUN setcap cap_setfcap,cap_chown=ep {{ $beatHome }}/data/elastic-agent-{{ commit_short }}/elastic-agent
147+
RUN setcap cap_setfcap,cap_chown,cap_setpcap=ep {{ $beatHome }}/data/elastic-agent-{{ commit_short }}/elastic-agent
148148
RUN setcap cap_net_raw,cap_setuid+p {{ $beatHome }}/data/elastic-agent-{{ commit_short }}/components/heartbeat && \
149149
{{- if .linux_capabilities }}
150150
# Since the beat is stored at the other end of a symlink we must follow the symlink first

0 commit comments

Comments
 (0)