libsmack: add functions for setting and removing labels on files
authorRafal Krypa <r.krypa@samsung.com>
Thu, 20 Feb 2014 14:04:57 +0000 (15:04 +0100)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 5 Mar 2014 10:26:25 +0000 (12:26 +0200)
commit338b335d0d7bd5092684b951f824804f4551a89f
treee1a687f852a5c0bd8212473d0bb6f441a07c13ee
parentc625a7d6bbb98e7322738914a6bba20234d2448f
libsmack: add functions for setting and removing labels on files

Jóse Bollo implemented two functions as part of this various
improvements for the chsmack command-line utility:

- smack_set_label_for_path() (see f1dfd85)
- smack_remove_label_for_path() (see 5da1a22)

Since they are generally useful, they should be part of the
API in libsmack 1.1.

This patch migrates these functions to libsmack and exports
the symbols. Also, the chsmack is modified to use the new API
instead of the internal functions.

[jsakkine: rewrote the patch description]

Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
libsmack/libsmack.c
libsmack/libsmack.sym
libsmack/sys/smack.h
utils/chsmack.c