Matthew Miller <mattdm(a)mattdm.org> writes:
On Fri, Oct 29, 2010 at 02:32:52PM +0530, Rahul Sundaram wrote:
> Is there any particular reason, the regular tools that users already use
> cannot be modified to display the appropriate info, like SELinux and -Z
> argument.
FWIW, colorized ls seems to already recognize them. Setuid binaries are
gray text on a red background, while binaries with capabilities set are
black text on a red background.
From coreutils/src/ls.c:
/* Note has_capability() adds around 30% runtime to `ls --color` */
Andreas.
--
Andreas Schwab, schwab(a)redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."