From 90166dc517268d56ec7858e012d160ebae53c58e Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Wed, 14 Dec 2022 16:36:19 +0200 Subject: 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 --- netdata.spec.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'netdata.spec.in') diff --git a/netdata.spec.in b/netdata.spec.in index cbbe6ab736..1c6aa61d23 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -40,7 +40,7 @@ AutoReqProv: yes # # Conditional build: %bcond_without systemd # systemd -%bcond_with netns # build with netns support (cgroup-network) +%bcond_without netns # build with netns support (cgroup-network) %if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1140 %else @@ -504,6 +504,11 @@ rm -rf "${RPM_BUILD_ROOT}" %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/cgroup-network-helper.sh %endif +# ebpf plugin +%if 0%{?_have_ebpf} +%attr(4750,root,netdata) %{_libexecdir}/%{name}/plugins.d/ebpf.plugin +%endif + # perf plugin # This should be CAP_PERFMON once RPM finally learns about it, but needs to be CAP_SYS_ADMIN for now. # %caps(cap_perfmon=ep) %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/perf.plugin -- cgit v1.2.3