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

Summary: ls -Z should work when SE Linux is disabled
Product: [Fedora] Fedora Reporter: Russell Coker <rcoker>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-25 10:02:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.