Bug 456414 - psacct: Process accounting does not create initial pacct file with secure permissions
Summary: psacct: Process accounting does not create initial pacct file with secure per...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 291531
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-23 13:43 UTC by Jan Lieskovsky
Modified: 2019-09-29 12:25 UTC (History)
1 user (show)

Fixed In Version: psacct-6.3.2-44.el5.rpm
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-23 14:34:10 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Lieskovsky 2008-07-23 13:43:32 UTC
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.