mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Dmitry Kasatkin](/assets/img/avatar_default.png)
Fix checkpatch, lindent, etc, warnings/errors Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
27 lines
743 B
C
27 lines
743 B
C
/*
|
|
* Copyright (C) 2011 IBM Corporation
|
|
*
|
|
* Author:
|
|
* Mimi Zohar <zohar@us.ibm.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, version 2 of the License.
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/xattr.h>
|
|
#include <linux/evm.h>
|
|
|
|
int posix_xattr_acl(const char *xattr)
|
|
{
|
|
int xattr_len = strlen(xattr);
|
|
|
|
if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len)
|
|
&& (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0))
|
|
return 1;
|
|
if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len)
|
|
&& (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0))
|
|
return 1;
|
|
return 0;
|
|
}
|