This source file includes following definitions.
- posix_xattr_acl
1
2
3
4
5
6
7
8
9 #include <linux/xattr.h>
10 #include <linux/evm.h>
11
12 int posix_xattr_acl(const char *xattr)
13 {
14 int xattr_len = strlen(xattr);
15
16 if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len)
17 && (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0))
18 return 1;
19 if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len)
20 && (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0))
21 return 1;
22 return 0;
23 }