Skip to content

Commit 46d0aac

Browse files
Ironbank: update permission setup in the Dockerfile (#9128) (#10229)
* Ironbank: update permission setup in the Dockerfile * Fix double slash (cherry picked from commit 5c354c6) Co-authored-by: Pierre HILBERT <[email protected]>
1 parent a2b94da commit 46d0aac

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

dev-tools/packaging/templates/ironbank/Dockerfile.tmpl

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,20 @@ RUN find / -xdev -perm -4000 -exec chmod u-s {} +
7575
RUN groupadd --gid 1000 ${ELASTIC_PRODUCT} && useradd --uid 1000 --gid 1000 --groups 0 --home-dir /usr/share/${ELASTIC_PRODUCT} --no-create-home ${ELASTIC_PRODUCT}
7676

7777
# Elastic Agent permissions
78-
RUN find /usr/share//elastic-agent/data -type d -exec chmod 0770 {} \; && \
79-
find /usr/share//elastic-agent/data -type f -exec chmod 0660 {} \; && \
80-
chmod +x /usr/share//elastic-agent/data/elastic-agent-*/elastic-agent
78+
RUN find /usr/share//elastic-agent/data -type d -exec chmod 0777 {} \; && \
79+
find /usr/share//elastic-agent/data -type f -exec chmod 0666 {} \; && \
80+
chmod 0755 /usr/share//elastic-agent/data/elastic-agent-*/elastic-agent && \
81+
chmod 0755 /usr/share//elastic-agent/data/elastic-agent-*/components/*beat && \
82+
(chmod 0755 /usr/share/elastic-agent/data/elastic-agent-*/components/osquery* || true) && \
83+
(chmod 0755 /usr/share/elastic-agent/data/elastic-agent-*/components/apm-server || true) && \
84+
(chmod 0755 /usr/share/elastic-agent/data/elastic-agent-*/components/endpoint-security || true) && \
85+
(chmod 0755 /usr/share/elastic-agent/data/elastic-agent-*/components/fleet-server || true) && \
86+
(chmod 0755 /usr/share/elastic-agent/data/elastic-agent-*/components/pf-elastic-collector || true) && \
87+
(chmod 0755 /usr/share/elastic-agent/data/elastic-agent-*/components/pf-elastic-symbolizer || true) && \
88+
(chmod 0755 /usr/share/elastic-agent/data/elastic-agent-*/components/pf-host-agent || true) && \
89+
(chmod 0755 /usr/share/elastic-agent/data/elastic-agent-*/otelcol || true) && \
90+
(chmod 0755 /usr/share/elastic-agent/otelcol || true) && \
91+
chmod +x /usr/share/elastic-agent/data/elastic-agent-*/elastic-agent
8192

8293
COPY jq /usr/local/bin
8394
RUN chown root:root /usr/local/bin/jq && chmod 0755 /usr/local/bin/jq

0 commit comments

Comments
 (0)