Use <linux/xattr.h> for security xattrs
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Wed, 17 Sep 2014 13:01:12 +0000 (16:01 +0300)
committerDmitry Kasatkin <d.kasatkin@samsung.com>
Wed, 17 Sep 2014 13:01:12 +0000 (16:01 +0300)
Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
src/evmctl.c

index 1af04a4..95759df 100644 (file)
@@ -50,6 +50,7 @@
 #include <string.h>
 #include <dirent.h>
 #include <attr/xattr.h>
+#include <linux/xattr.h>
 #include <getopt.h>
 #include <keyutils.h>
 #include <ctype.h>
 #include "imaevm.h"
 
 static char *evm_config_xattrnames[] = {
-       "security.selinux",
-       "security.SMACK64",
-       "security.ima",
-       "security.capability",
+       XATTR_NAME_SELINUX,
+       XATTR_NAME_SMACK,
+       XATTR_NAME_IMA,
+       XATTR_NAME_CAPS,
        NULL
 };