]> git.pld-linux.org Git - packages/bacula.git/commitdiff
- trigger to fix insecure permissions on bat.conf on upgrade
authorJacek Konieczny <jajcus@pld-linux.org>
Thu, 18 Mar 2010 09:47:23 +0000 (09:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- bwx-console.conf permissions set the same as bat.conf (though, previous were also secure)
- Release: 2

Changed files:
    bacula.spec -> 1.133

bacula.spec

index 45702285b816862c4e8ecf7cd5a428378b708922..bffe300dda776576053715ff1b20da1ca222a7b7 100644 (file)
@@ -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
This page took 0.0807 seconds and 4 git commands to generate.