bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: changing the "+" in ls -l output to be "." or "+"


From: Eric Blake
Subject: Re: RFC: changing the "+" in ls -l output to be "." or "+"
Date: Fri, 24 Oct 2008 07:35:50 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Mike Edenfield on 10/24/2008 7:19 AM:
> Based on the kind of real-world problems I've had, the most useful thing
> ls could tell me about a file on my SELinux system would be that it
> *should* have a label and *doesn't*, something like:
> 
> if ( selinux_enabled )
>   if ( label == NULL || label == fs.defaultlabel )
>     use "!"
>   else
>     use " "

Unfortunately, that would violate POSIX, which requires ' ' in the case
when no alternate access controls are in force.  And SELinux contexts
count as an alternate access control.

"The <optional alternate access method flag> shall be a single <space> if
there is no alternate or additional access control method associated with
the file; otherwise, a printable character shall be used."
http://www.opengroup.org/onlinepubs/009695399/utilities/ls.html

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkBzw8ACgkQ84KuGfSFAYCXAACeN4uUaHlCuBXUMFeJLsBDyShJ
AGIAniTtjas6Urnz/P92Vhr/JFx19oZC
=ibH3
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]