Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 157856 - ls -Z should work when SE Linux is disabled
Summary: ls -Z should work when SE Linux is disabled
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-05-16 14:40 UTC by Russell Coker
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-07-25 10:02:07 UTC

Attachments (Terms of Use)

Description Russell Coker 2005-05-16 14:40:15 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.0 (like Gecko)

Description of problem:
The command "ls -Z" displays the value of the xattr named "security.selinux".   
That attribute will sometimes exist on machines not running SE Linux, for  
example a machine that has just had SE Linux disabled, a machine booted from a  
CD for recovery, or a non-SE machine with the hard disk from a SE machine  
connected for recovery or forensics.  
For these reasons it doesn't make sense for "ls" to check whether SE Linux is  
enabled before giving SE Linux functionality.  At the below URL I have put a 
modified version of the coreutils patch for SE Linux to remove such checks. 

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

How reproducible:

Steps to Reproduce:
Run "ls -Z" on a non-SE machine and observe an error message. 

Additional info:

Comment 1 Tim Waugh 2005-05-16 17:56:23 UTC
Fixed in CVS.

Package still building.

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