Bug 543456

Summary: Owner of process is always root in process accounting
Product: [Fedora] Fedora Reporter: Vsevolod Volkov <home+fedora>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 12CC: dougsland, gansalmon, gasi, itamar, kernel-maint, mikey, mschmidt
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-30 18:26:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vsevolod Volkov 2009-12-02 12:58:12 UTC
Description of problem:
ac_uid16, ac_gid16, ac_uid32, ac_gid32 are always 0 in /var/account/pacct file.
Utilities like sa or lastcomm show that owner of all processes is root.

Version-Release number of selected component (if applicable):

How reproducible:
Start process accounting, run some command as user (not root), print process accounting information.

Steps to Reproduce:
1. sudo service psacct start
2. cal
3. sudo lastcomm cal

Actual results:
cal                     root     pts/3      0.00 secs Wed Dec  2 14:52
                        ^^^^

Expected results:
cal                      vvv     pts/3      0.00 secs Wed Dec  2 14:52
                         ^^^

Additional info:

Comment 1 Michal Schmidt 2009-12-16 07:18:17 UTC
Upstream commit 4b731d50ff3df6b9141a6c12b088e8eb0109e83c
  bsdacct: fix uid/gid misreporting

fixes it. It is queued for 2.6.31-stable and 2.6.32-stable. It will get to Fedora kernel with one of the regular kernel updates eventually.

Comment 2 Michal Schmidt 2009-12-16 07:20:19 UTC
*** Bug 545339 has been marked as a duplicate of this bug. ***

Comment 3 Vsevolod Volkov 2009-12-30 18:26:25 UTC
Confirm that it fixed in kernel-2.6.31.9-174.

Comment 4 Herbert Gasiorowski 2010-01-11 09:13:37 UTC
Thanks, it actually works again with kernel-2.6.31.9-174.