File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
dev-tools/packaging/templates/ironbank Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,20 @@ RUN find / -xdev -perm -4000 -exec chmod u-s {} +
75
75
RUN groupadd --gid 1000 ${ELASTIC_PRODUCT} && useradd --uid 1000 --gid 1000 --groups 0 --home-dir /usr/share/${ELASTIC_PRODUCT} --no-create-home ${ELASTIC_PRODUCT}
76
76
77
77
# 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
81
92
82
93
COPY jq /usr/local/bin
83
94
RUN chown root:root /usr/local/bin/jq && chmod 0755 /usr/local/bin/jq
You can’t perform that action at this time.
0 commit comments