From 8b7832e3d3800f9d065d0035b41205da46454e1a Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 22 2022 16:14:31 +0000 Subject: import logrotate-3.14.0-5.el8 --- diff --git a/SOURCES/0005-logrotate-3.14.0-btmp-create-mode.patch b/SOURCES/0005-logrotate-3.14.0-btmp-create-mode.patch new file mode 100644 index 0000000..8f6e0af --- /dev/null +++ b/SOURCES/0005-logrotate-3.14.0-btmp-create-mode.patch @@ -0,0 +1,33 @@ +From a045dbad7370109a8ddf16a24090b8357a9b73fd Mon Sep 17 00:00:00 2001 +From: Kamil Dudka +Date: Mon, 26 Aug 2019 15:13:16 +0200 +Subject: [PATCH] examples/btmp: use create mode 0660 + +... to make the created file accessible by the utmp group. + +Bug: https://bugzilla.redhat.com/1745330 +Suggested-by: Steve Grubb + +Closes #257 + +Upstream-commit: b1bddec3e73bff4282bcd4845f27ab7b375469da +Signed-off-by: Kamil Dudka +--- + examples/btmp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/examples/btmp b/examples/btmp +index 393ead5..0aa1ae1 100644 +--- a/examples/btmp ++++ b/examples/btmp +@@ -2,6 +2,6 @@ + /var/log/btmp { + missingok + monthly +- create 0600 root utmp ++ create 0660 root utmp + rotate 1 + } +-- +2.37.3 + diff --git a/SPECS/logrotate.spec b/SPECS/logrotate.spec index 51fec39..91b5045 100644 --- a/SPECS/logrotate.spec +++ b/SPECS/logrotate.spec @@ -1,7 +1,7 @@ Summary: Rotates, compresses, removes and mails system log files Name: logrotate Version: 3.14.0 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ Url: https://github.com/logrotate/logrotate Source: https://github.com/logrotate/logrotate/releases/download/%{version}/logrotate-%{version}.tar.xz @@ -28,6 +28,9 @@ Patch3: 0003-logrotate-3.14.0-broken-symlink.patch # logrotate.8: encourage admins to use the `su` directive (#1759770) Patch4: 0004-logrotate-3.14.0-man-page-su.patch +# create /var/log/btmp with mode 0660 (#2061561) +Patch5: 0005-logrotate-3.14.0-btmp-create-mode.patch + %description The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate @@ -113,6 +116,9 @@ fi %config(noreplace) %{_sysconfdir}/rwtab.d/logrotate %changelog +* Mon Nov 14 2022 Kamil Dudka - 3.14.0-5 +- create /var/log/btmp with mode 0660 (#2061561) + * Wed May 06 2020 Kamil Dudka - 3.14.0-4 - logrotate.8: encourage admins to use the `su` directive (#1759770) - do not abort globbing on broken symlink (#1723265)