From 65b9c0ea14f09011e90ce3895e9b2e1e7234cfab Mon Sep 17 00:00:00 2001 From: Michael Panzlaff Date: Wed, 8 Apr 2026 15:54:36 +0200 Subject: [PATCH] rpm: chown on /usr/bin/cc-metric-collector is unnecessary The file belongs to root otherwise. The monitoring user can already execute it. The monitoring user should not be allowed to change the file, which is slightly more restricting. However it is in line with what 99.9% of packages will do. --- scripts/cc-metric-collector.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/cc-metric-collector.spec b/scripts/cc-metric-collector.spec index 761d828..4b9032d 100644 --- a/scripts/cc-metric-collector.spec +++ b/scripts/cc-metric-collector.spec @@ -53,8 +53,6 @@ install -Dpm 0644 scripts/%{name}.sysusers %{buildroot}%{_sysusersdir}/%{name}.c %systemd_preun %{name}.service %files -# Binary -%attr(-,clustercockpit,clustercockpit) %{_bindir}/%{name} # Config %dir %{_sysconfdir}/%{name} %attr(0600,clustercockpit,clustercockpit) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.json