Bug 2061561

Summary: Wrong permissions inside /etc/logrotate.d/btmp 0600 instead of 0660, discrepancy with systemd
Product: Red Hat Enterprise Linux 8 Reporter: Juan Gamba <jgamba>
Component: logrotateAssignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: Karel Volný <kvolny>
Severity: high Docs Contact:
Priority: unspecified    
Version: ---CC: fsumsal, kdudka, kvolny
Target Milestone: rcKeywords: EasyFix, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: logrotate-3.14.0-5.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 09:09:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1745330    
Bug Blocks:    

Description Juan Gamba 2022-03-07 20:23:41 UTC
Description of problem:

Wrong permissions inside /etc/logrotate.d/btmp 0600 instead of 0660, discrepancy with systemd

Version-Release number of selected component (if applicable):

How reproducible:

Always

Steps to Reproduce:
1. 

# cat /etc/logrotate.d/btmp

2. 

3.

Actual results:

# cat /etc/logrotate.d/btmp
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
    missingok
    monthly
    create 0600 root utmp
    rotate 1
}

Expected results:

# cat /etc/logrotate.d/btmp
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}


Additional info:

# cat /usr/lib/tmpfiles.d/var.conf | grep btmp
f /var/log/btmp 0660 root utmp -

FEDORA and new RHEL beta already has 0660 on the same file.

Comment 1 Kamil Dudka 2022-03-08 15:57:34 UTC
upstream commit: https://github.com/logrotate/logrotate/commit/b1bddec3

Comment 12 errata-xmlrpc 2023-05-16 09:09:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (logrotate bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2999