diff --git a/debian/rules b/debian/rules index 6e5fbd9c0..f496a9e80 100755 --- a/debian/rules +++ b/debian/rules @@ -49,4 +49,5 @@ override_dh_auto_install: override_dh_fixperms: dh_fixperms + chmod 600 debian/crowdsec/etc/crowdsec/notifications/* chmod 600 debian/crowdsec/etc/crowdsec/config.yaml diff --git a/rpm/SPECS/crowdsec.spec b/rpm/SPECS/crowdsec.spec index d909fea34..14c66e879 100644 --- a/rpm/SPECS/crowdsec.spec +++ b/rpm/SPECS/crowdsec.spec @@ -68,10 +68,10 @@ install -m 551 plugins/notifications/http/notification-http %{buildroot}%{_libdi install -m 551 plugins/notifications/splunk/notification-splunk %{buildroot}%{_libdir}/%{name}/plugins/ install -m 551 plugins/notifications/email/notification-email %{buildroot}%{_libdir}/%{name}/plugins/ -install -m 644 plugins/notifications/slack/slack.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ -install -m 644 plugins/notifications/http/http.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ -install -m 644 plugins/notifications/splunk/splunk.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ -install -m 644 plugins/notifications/email/email.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ +install -m 600 plugins/notifications/slack/slack.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ +install -m 600 plugins/notifications/http/http.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ +install -m 600 plugins/notifications/splunk/splunk.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ +install -m 600 plugins/notifications/email/email.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ %clean rm -rf %{buildroot}