ls: with -Z, show SMACK security context 20/8320/1
authorJarkko Sakkinen <jarkko.sakkinen@iki.fi>
Mon, 24 Jun 2013 11:24:55 +0000 (14:24 +0300)
committerMichael Demeter <michael.demeter@intel.com>
Mon, 12 Aug 2013 22:52:02 +0000 (15:52 -0700)
commit8bac991f18cdc1dfb8ab8fd2416066d420dfaca7
tree271d2f519a1b4f34dcf6d050646b8eddb54714d9
parentd3eb2262c619ea3121cbb5dd22d19b145de55899
ls: with -Z, show SMACK security context

Enable showing of file SMACK security with '-Z' command-line switch
if SMACK is enabled.  Showing SMACK context of a file does not strictly
require SMACK to be enabled but this required to make choice whether to
show SELinux or SMACK security context.

* src/ls.c (getfilecon_cache): Retrieve SMACK context if available.
(gobble_file): Handle SMACK context similarly to SELinux context.
* src/local.mk: Link lsl with libsmack.
* NEWS: Mention the new feature.
* .mailmap: Merge the Author's 2 email addresses.

Signed-off-by: Michael Demeter <michael.demeter@intel.com>
Conflicts:
NEWS

Change-Id: I888bc3b0f08dfe8a9eae9a244c91c9ab6b1d9c08
.mailmap
NEWS
src/local.mk
src/ls.c