fix(packaging): add setuid for cgroup-network and ebpf.plugin in RPM (#14140)
Fixes https://github.com/netdata/netdata/issues/14132 fix https://github.com/netdata/netdata/issues/14132
Ilya Mashchenko committed
Dec 14, 2022 at 16:36 UTC
90166dc517268d56ec7858e012d160ebae53c58e
1 file changed
+6
-1
netdata.spec.in
+6
-1
@@ -40,7 +40,7 @@ AutoReqProv: yes
40
#
41
# Conditional build:
42
%bcond_without systemd # systemd
43
-%bcond_with netns # build with netns support (cgroup-network)
43
+%bcond_without netns # build with netns support (cgroup-network)
44
45
%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1140
46
%else
@@ -504,6 +504,11 @@ rm -rf "${RPM_BUILD_ROOT}"
504
%attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/cgroup-network-helper.sh
505
%endif
506
507
+# ebpf plugin
508
+%if 0%{?_have_ebpf}
509
+%attr(4750,root,netdata) %{_libexecdir}/%{name}/plugins.d/ebpf.plugin
510
+%endif
511
+
512
# perf plugin
513
# This should be CAP_PERFMON once RPM finally learns about it, but needs to be CAP_SYS_ADMIN for now.
514
# %caps(cap_perfmon=ep) %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/perf.plugin