diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-12-14 16:36:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-14 16:36:19 +0200 |
commit | 90166dc517268d56ec7858e012d160ebae53c58e (patch) | |
tree | ff0f9ec062e5f23af8ad55ae8e51a77991bfffdd | |
parent | 3286d48fe0d284780f905be022e11782468a4192 (diff) |
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
-rw-r--r-- | netdata.spec.in | 7 |
1 files changed, 6 insertions, 1 deletions
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 |