Skip to content

Commit

Permalink
Merge branch 'feat/aci-image' of github.com:michalpristas/elastic-age…
Browse files Browse the repository at this point in the history
…nt into feat/aci-image
  • Loading branch information
michalpristas committed Oct 12, 2023
2 parents d037d95 + f4bf8e6 commit d6396ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ RUN setcap cap_net_raw,cap_setuid+p {{ $beatHome }}/data/elastic-agent-{{ commit
# For security reasons setcap does not support symlinks. This is smart in the general case
# but in our specific case since we're building a trusted image from trusted binaries this is
# fine. Thus, we use readlink to follow the link and setcap on the actual binary
readlink -f {{ $beatBinary }} | xargs setcap {{ .linux_capabilities }} && \
setcap {{ .linux_capabilities }} $(readlink -f {{ $beatBinary }}) && \
{{- end }}
true

Expand Down

0 comments on commit d6396ae

Please sign in to comment.