Bug 1182318

Summary: Wrong permission of /var/account/pacct in psacct package
Product: Red Hat Enterprise Linux 5 Reporter: Paulo Andrade <pandrade>
Component: psacctAssignee: Jan Rybar <jrybar>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.11Keywords: EasyFix, Patch
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-30 11:43:22 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: 1182317, 1249665    
Bug Blocks:    

Description Paulo Andrade 2015-01-14 20:35:09 UTC
RPM psacct specifies the file /var/account/pacct as a ghost file with permissions 640, but after installation the file has permission 644, causing rpm verficiation and subsequent compliance check failures.

A simple psacct.spec pseudo patch would be:

-%attr(0600,root,root)   %ghost %config %{accounting_logdir}/pacct
+%attr(0644,root,root)   %ghost %config %{accounting_logdir}/pacct

Comment 1 Jaromír Cápík 2016-01-11 14:20:10 UTC
The permissions need to stay 0600 ... the right fix is here:
https://bugzilla.redhat.com/show_bug.cgi?id=1182317#c9

Comment 3 Jan Rybar 2016-06-07 11:25:44 UTC
This is not a critical bug for RHEL5 and is considered for patch in further versions of RHEL, namely https://bugzilla.redhat.com/show_bug.cgi?id=1182317 and https://bugzilla.redhat.com/show_bug.cgi?id=1249665 (Red Hat internal).
This BZ for RHEL5 is proposed to be closed.

Comment 4 Jan Rybar 2016-06-30 11:43:22 UTC
This bug will not be fixed in this version for the reasons mentioned in Comment 3. The bug is fixed in further versions of RHEL - https://bugzilla.redhat.com/show_bug.cgi?id=1249665