1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011 IBM Corporation
6 * Mimi Zohar <zohar@us.ibm.com>
9 #include <linux/xattr.h>
10 #include <linux/evm.h>
12 int posix_xattr_acl(const char *xattr
)
14 int xattr_len
= strlen(xattr
);
16 if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS
) == xattr_len
)
17 && (strncmp(XATTR_NAME_POSIX_ACL_ACCESS
, xattr
, xattr_len
) == 0))
19 if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT
) == xattr_len
)
20 && (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT
, xattr
, xattr_len
) == 0))