Matthew Miller mattdm@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.