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...
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 291531
  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:
Last Closed: 2008-07-23 10:34:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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.