ls: with -Z, show SMACK security context
commitcd510a676d15d67268e83eb9bd7c8971d7a4a7d6
authorJarkko Sakkinen <jarkko.sakkinen@iki.fi>
Mon, 24 Jun 2013 11:24:55 +0000 (24 14:24 +0300)
committerPádraig Brady <P@draigBrady.com>
Mon, 24 Jun 2013 20:00:14 +0000 (24 21:00 +0100)
tree2fc11a1e5b38bc8a1c9702ceaf97b28d5fd8f279
parentbc70095df2ea1bc4338ea7331d44b916e0c82258
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.
.mailmap
NEWS
src/local.mk
src/ls.c