Description of problem: The file /usr/libexec/netdata/plugins.d/apps.plugin is installed as setuid root, but in the Netdata documentation is stated that only the capabilities cap_dac_read_search,cap_sys_ptrace are needed. https://docs.netdata.cloud/collectors/apps.plugin/#permissions Version-Release number of selected component (if applicable): netdata-1.21.0-1.fc33.x86_64 How reproducible: Always Steps to Reproduce: 1. dnf install netdata Actual results: $ ls -la /usr/libexec/netdata/plugins.d/apps.plugin -rwsr-xr-x. 1 root root 103368 abr 7 23:47 /usr/libexec/netdata/plugins.d/apps.plugin $ getcap -v /usr/libexec/netdata/plugins.d/apps.plugin /usr/libexec/netdata/plugins.d/apps.plugin Expected results: $ ls -la /usr/libexec/netdata/plugins.d/apps.plugin -rwxr-xr-x. 1 root root 103368 abr 7 23:47 /usr/libexec/netdata/plugins.d/apps.plugin $ getcap -v /usr/libexec/netdata/plugins.d/apps.plugin /usr/libexec/netdata/plugins.d/apps.plugin = cap_dac_read_search,cap_sys_ptrace+ep Additional info: I've not tested it, but something like this should work in the %files section: %attr(0755,root,root) %caps(cap_dac_read_search,cap_sys_ptrace=ep) %{_libexecdir}/%{name}/plugins.d/apps.plugin
I have checked that the netdata installer restricts execution of that file to others, setting the permissions of /usr/libexec/netdata/plugins.d/apps.plugin to 0750 root:netdata cap_dac_read_search,cap_sys_ptrace=ep The netdata installer also makes other binaries root setuid, and restricted to others (4750 root:netdata) /usr/libexec/netdata/plugins.d/slabinfo.plugin /usr/libexec/netdata/plugins.d/ebpf_process.plugin /usr/libexec/netdata/plugins.d/cgroup-network /usr/libexec/netdata/plugins.d/perf.plugin I'm not sure if those binaries require full root, but it will be worth exploring what's the minimum capabilities they need and restrict execution to the netdata group only.
FEDORA-2020-aeb3b29305 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-aeb3b29305
FEDORA-2020-4d87a62071 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-4d87a62071
FEDORA-2020-c807d02b1f has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c807d02b1f
FEDORA-EPEL-2020-c3fca161ee has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-c3fca161ee
FEDORA-EPEL-2020-ff11142989 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-ff11142989
FEDORA-2020-aeb3b29305 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-aeb3b29305` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-aeb3b29305 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-c807d02b1f has been pushed to the Fedora 30 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-c807d02b1f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c807d02b1f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-4d87a62071 has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-4d87a62071` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-4d87a62071 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2020-c3fca161ee has been pushed to the Fedora EPEL 8 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-c3fca161ee See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2020-ff11142989 has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-ff11142989 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-aeb3b29305 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2020-c807d02b1f has been pushed to the Fedora 30 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2020-4d87a62071 has been pushed to the Fedora 31 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-EPEL-2020-c3fca161ee has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-EPEL-2020-ff11142989 has been pushed to the Fedora EPEL 7 stable repository. If problem still persists, please make note of it in this bug report.