@cryptotaxi247 / netdata-1 / commits / 99424bf8d

set setuid for go.d.plugin in container (#15180)

Ilya Mashchenko committed Jun 13, 2023 at 13:52 UTC 99424bf8dbda7cc209cfc88ff6b208fca2d264d5
1 file changed +2 -2
packaging/docker/Dockerfile
+2 -2
@@ -109,8 +109,8 @@ RUN chown -R root:root \
109 if [ -f /usr/libexec/netdata/plugins.d/freeipmi.plugin ]; then \
110 chmod 4755 /usr/libexec/netdata/plugins.d/freeipmi.plugin; \
111 fi && \
112 - if [ -f /usr/libexec/netdata/plugins.d/go.d.plugin ] && command -v setcap 1>/dev/null 2>&1; then \
113 - setcap "cap_net_raw=eip" /usr/libexec/netdata/plugins.d/go.d.plugin 2>/dev/null; \
112 + if [ -f /usr/libexec/netdata/plugins.d/go.d.plugin ]; then \
113 + chmod 4755 /usr/libexec/netdata/plugins.d/go.d.plugin; \
114 fi && \
115 # Group write permissions due to: https://github.com/netdata/netdata/pull/6543
116 find /var/lib/netdata /var/cache/netdata -type d -exec chmod 0770 {} \; && \