mirror of
https://github.com/netdata/netdata.git
synced 2025-04-13 17:19:11 +00:00
set setuid for go.d.plugin in container (#15180)
This commit is contained in:
parent
ec4b219da8
commit
99424bf8db
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ RUN chown -R root:root \
|
|||
if [ -f /usr/libexec/netdata/plugins.d/freeipmi.plugin ]; then \
|
||||
chmod 4755 /usr/libexec/netdata/plugins.d/freeipmi.plugin; \
|
||||
fi && \
|
||||
if [ -f /usr/libexec/netdata/plugins.d/go.d.plugin ] && command -v setcap 1>/dev/null 2>&1; then \
|
||||
setcap "cap_net_raw=eip" /usr/libexec/netdata/plugins.d/go.d.plugin 2>/dev/null; \
|
||||
if [ -f /usr/libexec/netdata/plugins.d/go.d.plugin ]; then \
|
||||
chmod 4755 /usr/libexec/netdata/plugins.d/go.d.plugin; \
|
||||
fi && \
|
||||
# Group write permissions due to: https://github.com/netdata/netdata/pull/6543
|
||||
find /var/lib/netdata /var/cache/netdata -type d -exec chmod 0770 {} \; && \
|
||||
|
|
Loading…
Add table
Reference in a new issue