coreutils
[Top][All Lists]
Advanced

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

[coreutils] stat and SELinux context


From: Eric Blake
Subject: [coreutils] stat and SELinux context
Date: Fri, 01 Oct 2010 09:49:57 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

In working on the birthtime stat support, I noticed that we documented that -Z has been removed, on the grounds that you can get at it with --format=%C (although NEWS didn't mention the replacement).

Would it make sense to patch the default stat output (with no --format) to automatically supply the %C line that Fedora's stat -Z has already been patched to provide? That is, if coreutils is compiled with SELinux support, I see no reason why the context information should not be part of the default output. That way, on Fedora, where you now use 'stat -Z' because of a distro-specific patch to override -Z being a no-op, you would in the future ALWAYS get %C output without having to use -Z.

Besides, now's the perfect time to change the default output to include %C where available, given that we're already changing it to add %w birthtime ;)

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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