coreutils
[Top][All Lists]
Advanced

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

Re: [coreutils] stat and SELinux context


From: Pádraig Brady
Subject: Re: [coreutils] stat and SELinux context
Date: Fri, 01 Oct 2010 17:01:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 01/10/10 16:49, Eric Blake wrote:
> 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 ;)

Marginal.

I would vote 60:40 against doing this because
of the non standard format of the context info,
and the less generic nature of SELinux info
(compared to birthtime for example).

cheers,
Pádraig.



reply via email to

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