Red Hat Bugzilla – Bug 157856
ls -Z should work when SE Linux is disabled
Last modified: 2007-11-30 17:11:06 EST
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):
Steps to Reproduce:
Run "ls -Z" on a non-SE machine and observe an error message.
Fixed in CVS.
Package still building.