chsmack: using linux constants for Smack's names
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Tue, 10 Dec 2013 13:10:23 +0000 (14:10 +0100)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Tue, 17 Dec 2013 09:44:52 +0000 (10:44 +0100)
commit9e1344132453243401664405e1456f6cc48a9def
treec51307eed701219c78e0dd5a85d55686bfe22c7c
parent05f0545c21fd51c8a1a5ddc8ed409c58552ee4f7
chsmack: using linux constants for Smack's names

It is better to rely on the centralisation of names in a
single file: it can avoid errors.

The declarations of <linux/xattr.h> contains the definitions
of the names of the Smack's security attributes.

As Smack only runs on Linux and libsmack doesn't provides
a centralized version of the names of the security attributes
(because it were not needed), using the linux header seems
to be a good choice.

Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
utils/chsmack.c