Bug 121292 - ls -lZ displays owner as "root" even when it can't stat the file
Summary: ls -lZ displays owner as "root" even when it can't stat the file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-20 04:48 UTC by Russell Coker
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 5.2.1-6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-27 04:38:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Russell Coker 2004-04-20 04:48:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)

Description of problem:
?---------  root     root     (null)      oracle

Above is a line from "ls -lZ /" on my Fedora play machine.

lstat64("oracle", 0x905398c)    = -1 EACCES (Permission denied)

Above is a line from the strace output of the above ls command, note that the stat fails and therefore the ls command can't know what UID owns the file/directory in question.  In this test it is uid 100.

The UID and GID fields should be changed from "root" to be either "?" characters or spaces.

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


How reproducible:
Always

Steps to Reproduce:
Run SE Linux on your machine, login as a user_r user and run
"ls -lZ /".  Note that "ls -l /" gives correct results.

Additional info:

Comment 1 Tim Waugh 2004-04-20 17:30:42 UTC
Confirmed.  Should be fixed in coreutils-5.2.1-6.

Comment 2 Russell Coker 2006-03-27 04:38:13 UTC
As this has been fixed for ages (and is fixed in FC5) I think it should be 
closed. 


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