From: Jacek Konieczny Date: Thu, 18 Mar 2010 09:47:23 +0000 (+0000) Subject: - trigger to fix insecure permissions on bat.conf on upgrade X-Git-Tag: auto/th/bacula-5_0_1-2~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=3a5cd5d726bac79a2d1f0a490da3f984632b64de;p=packages%2Fbacula.git - trigger to fix insecure permissions on bat.conf on upgrade - bwx-console.conf permissions set the same as bat.conf (though, previous were also secure) - Release: 2 Changed files: bacula.spec -> 1.133 --- diff --git a/bacula.spec b/bacula.spec index 4570228..bffe300 100644 --- a/bacula.spec +++ b/bacula.spec @@ -22,7 +22,7 @@ Summary: Bacula - The Network Backup Solution Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci Name: bacula Version: 5.0.1 -Release: 1 +Release: 2 Epoch: 0 License: extended GPL v2 Group: Networking/Utilities @@ -721,6 +721,9 @@ fi %post console-wx %update_configs +%triggerpostun console-qt4 -- %{name}-console-qt4 < 5.0.1-2 +find /etc/bacula/bat.conf* -perm /007 -print0 | xargs -0 -r chmod 600 || : + %post console-qt4 %update_configs @@ -961,7 +964,7 @@ fi %doc LICENSE %{_pixmapsdir}/%{name}.png %{_desktopdir}/bacula-wx.desktop -%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf +%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf %attr(755,root,root) %{_sbindir}/bwx-console %{_mandir}/man1/bacula-bwxconsole.1* %endif