Bug 456414 - psacct: Process accounting does not create initial pacct file with secure permissions
psacct: Process accounting does not create initial pacct file with secure per...
Status: CLOSED CURRENTRELEASE
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
reported=20080723,public=20070914,sou...
: Security
Depends On: 291531
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-23 09:43 EDT by Jan Lieskovsky
Modified: 2008-07-23 10:34 EDT (History)
1 user (show)

See Also:
Fixed In Version: psacct-6.3.2-44.el5.rpm
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-23 10:34:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Lieskovsky 2008-07-23 09:43:32 EDT
Description of problem:

The process accounting package does not create the initial pacct process
accounting data file with secure permissions. If logrotate is installed,
subsequent pacct files are created with properly secured permissions by
logrotate due to the "create 0600 root root" line in /etc/logrotate.d/psacct,
but the permissions on the first pacct file created remain the same. Due to the
fact that /var/account is readable by all users, the first pacct file created
remains readable by all users. This can disclose sensitive system information to
unprivileged users.

Steps to Reproduce:
1. Install psacct
2. ls -l /var/account/pacct

Proposed .spec file patch:

* creating pacct file with secure (0600) permissions
    touch %{accounting_logdir}/pacct
    chmod 600 %{accounting_logdir}/pacct

* ghosting
    %attr(0600,root,root)   %ghost %config %{accounting_logdir}/pacct

Note You need to log in before you can comment on or make changes to this bug.