2 * Copyright (C) 2011 IBM Corporation
5 * Mimi Zohar <zohar@us.ibm.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, version 2 of the License.
12 #include <linux/module.h>
13 #include <linux/xattr.h>
14 #include <linux/evm.h>
16 int posix_xattr_acl(const char *xattr)
18 int xattr_len = strlen(xattr);
20 if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len)
21 && (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0))
23 if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len)
24 && (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0))