Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
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


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.