[ssmtp/el5] remove world readable permissions of the config file

wolfy wolfy at fedoraproject.org
Wed Jun 5 08:32:44 UTC 2013


commit 42550b69f4e963531edc8235292ab5efdbef3be6
Author: Manuel Wolfshant <wolfy at fedoraproject.org>
Date:   Wed Jun 5 11:32:26 2013 +0300

    remove world readable permissions of the config file

 ssmtp.spec |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/ssmtp.spec b/ssmtp.spec
index d423e47..6f1adf2 100644
--- a/ssmtp.spec
+++ b/ssmtp.spec
@@ -1,11 +1,11 @@
 Name:		ssmtp
 Version:	2.61
-Release:	19%{?dist}
+Release:	20%{?dist}
 Summary:	Extremely simple MTA to get mail off the system to a Mailhub
 Group:		Applications/Internet
 License:	GPLv2+
 URL:		http://packages.debian.org/stable/mail/ssmtp
-Source0:	ftp://ftp.debian.org/debian/pool/main/s/%{name}/%{name}_%{version}.orig.tar.gz
+Source0:	http://archive.debian.org/debian/pool/main/s/%{name}/%{name}_%{version}.orig.tar.gz
 Patch0:		%{name}-%{version}.6.patch
 Patch1:		%{name}-2.50.3-maxsysuid.patch
 Patch2:		%{name}-defaultvalues.patch
@@ -20,7 +20,7 @@ Patch8:		%{name}-authpass.patch
 Patch9:		%{name}-aliases.patch
 Patch10:	%{name}-default-cert-path.patch
 Patch11:	%{name}-standardise.patch
-Patch12:        %{name}-garbage_writes.patch
+Patch12:	%{name}-garbage_writes.patch
 Patch13:	%{name}-validate-TLS-server-cert.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 #hack around wrong requires for mutt and mdadm
@@ -85,7 +85,7 @@ sed -i "s/LIBS -lssl/LIBS -lssl -lcrypto/" configure
 %endif
 %install 
 rm -rf %{buildroot}
-install -p -D -m 755 %{name} %{buildroot}%{_sbindir}/%{name}
+install -p -D -m 2750 %{name} %{buildroot}%{_sbindir}/%{name}
 #install -p -D -m 755 generate_config_alt %{buildroot}%{_bindir}/generate_config_alt
 mkdir %{buildroot}%{_bindir}/
 install -p -D -m 644 revaliases %{buildroot}%{_sysconfdir}/ssmtp/revaliases
@@ -136,8 +136,7 @@ fi
 %{_mandir}/man5/*
 %{_mandir}/man8/*
 %{_mandir}/man1/*
-%{_sbindir}/%{name}
-#%{_bindir}/generate_config_alt
+%attr(2755, root, mail) %{_sbindir}/%{name}
 
 %ghost %{_sbindir}/sendmail
 %ghost %{_bindir}/mailq
@@ -149,12 +148,15 @@ fi
 %{_sbindir}/sendmail.ssmtp
 %{_bindir}/newaliases.ssmtp
 %{_bindir}/mailq.ssmtp
-%dir %{_sysconfdir}/ssmtp/
+%attr(2750, root, mail) %dir %{_sysconfdir}/ssmtp/
 %config(noreplace) %{_sysconfdir}/ssmtp/revaliases
-%config(noreplace) %{_sysconfdir}/ssmtp/ssmtp.conf
+%attr(2750, root, mail) %config(noreplace) %{_sysconfdir}/ssmtp/ssmtp.conf
 
 
 %changelog
+* Tue Jun 4 2013 Manuel "lonely wolf" Wolfshant <wolfy at fedoraproject.org> - 2.61-20
+- remove world readable permissions of the config file (#962988)
+
 * Sun Oct 14 2012 Manuel "lonely wolf" Wolfshant <wolfy at fedoraproject.org> - 2.61-19
 - Optional separation of TLS client key and certificate files
 - Add patch enabling verification of TLS server ( #864894 )
@@ -164,6 +166,12 @@ fi
 * Sat Jun 30 2012 Manuel "lonely wolf" Wolfshant <wolfy at fedoraproject.org> - 2.61-18
 - Apply patch to fix addition of garbage at end of attachments
 
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.61-17
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.61-16
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
 * Tue Jul 27 2010 Manuel "lonely wolf" Wolfshant <wolfy at fedoraproject.org> - 2.61-15
 - fix regression created by the patch for standardise() -- Buffer overflow
 
@@ -173,7 +181,7 @@ fi
   (close #582236)
 
 * Mon Mar 08 2010 Manuel "lonely wolf" Wolfshant <wolfy at fedoraproject.org> 2.61-13
-- Use %ghost instead of explicit-provides according to Packaging Guidelines for
+- Use %%ghost instead of explicit-provides according to Packaging Guidelines for
   Alternatives.
 - close #570799
 


More information about the scm-commits mailing list