From 5bfc02ae0f5f0f287692f88314b7a65725a74319 Mon Sep 17 00:00:00 2001 From: Daniel Novotny Date: Mon, 11 Jan 2010 12:54:32 +0000 Subject: [PATCH] - fix #489038 - RFE: useful permissions on log files --- logrotate-3.7.8-perm.patch | 12 ++++++++++++ logrotate.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 logrotate-3.7.8-perm.patch diff --git a/logrotate-3.7.8-perm.patch b/logrotate-3.7.8-perm.patch new file mode 100644 index 0000000..614d595 --- /dev/null +++ b/logrotate-3.7.8-perm.patch @@ -0,0 +1,12 @@ +diff -up logrotate-3.7.8/examples/logrotate-default.perm logrotate-3.7.8/examples/logrotate-default +--- logrotate-3.7.8/examples/logrotate-default.perm 2010-01-11 13:48:15.000000000 +0100 ++++ logrotate-3.7.8/examples/logrotate-default 2010-01-11 13:48:46.000000000 +0100 +@@ -6,7 +6,7 @@ weekly + rotate 4 + + # create new (empty) log files after rotating old ones +-create ++create 0640 root adm + + # use date as a suffix of the rotated file + dateext diff --git a/logrotate.spec b/logrotate.spec index 1b0a11d..f091e08 100644 --- a/logrotate.spec +++ b/logrotate.spec @@ -1,7 +1,7 @@ Summary: Rotates, compresses, removes and mails system log files Name: logrotate Version: 3.7.8 -Release: 6%{?dist} +Release: 7%{?dist} License: GPL+ Group: System Environment/Base Source: https://fedorahosted.org/releases/l/o/logrotate/logrotate-%{version}.tar.gz @@ -10,6 +10,7 @@ Patch2: logrotate-3.7.7-toolarge.patch Patch3: logrotate-3.7.8-devnull.patch Patch4: logrotate-3.7.8-man5.patch Patch5: logrotate-3.7.8-readonly.patch +Patch6: logrotate-3.7.8-perm.patch Requires: coreutils >= 5.92 libsepol libselinux popt BuildRequires: libselinux-devel popt-devel @@ -33,6 +34,7 @@ log files on your system. %patch3 -p1 -b .devnull %patch4 -p1 -b .man5 %patch5 -p1 -b .readonly +%patch6 -p1 -b .perm %build make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" WITH_SELINUX=yes @@ -63,6 +65,9 @@ rm -rf $RPM_BUILD_ROOT %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status %changelog +* Mon Jan 11 2010 Daniel Novotny 3.7.8-7 +- fix #489038 - RFE: useful permissions on log files + * Wed Dec 09 2009 Henrique Martins 3.7.8-6 - fix #545919 (rotate non-writable files when copy is set)