packages: bacula/bacula.spec - trigger to fix insecure permissions on bat.c...

jajcus jajcus at pld-linux.org
Thu Mar 18 10:47:31 CET 2010


Author: jajcus                       Date: Thu Mar 18 09:47:31 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- 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

---- Files affected:
packages/bacula:
   bacula.spec (1.132 -> 1.133) 

---- Diffs:

================================================================
Index: packages/bacula/bacula.spec
diff -u packages/bacula/bacula.spec:1.132 packages/bacula/bacula.spec:1.133
--- packages/bacula/bacula.spec:1.132	Thu Mar 18 10:14:29 2010
+++ packages/bacula/bacula.spec	Thu Mar 18 10:47:23 2010
@@ -23,7 +23,7 @@
 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
@@ -722,6 +722,9 @@
 %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
 
@@ -962,7 +965,7 @@
 %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
@@ -1015,6 +1018,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.133  2010/03/18 09:47:23  jajcus
+- 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
+
 Revision 1.132  2010/03/18 09:14:29  jajcus
 - SECURITY: limit access to bat.conf to user root and bacula group only. This file
 contains a password which gives full access to the backup server (this could be
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/bacula/bacula.spec?r1=1.132&r2=1.133&f=u



More information about the pld-cvs-commit mailing list