b886d83c5b
Based on 1 normalized pattern(s): 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 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 315 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190531190115.503150771@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24 lines
552 B
C
24 lines
552 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (C) 2011 IBM Corporation
|
|
*
|
|
* Author:
|
|
* Mimi Zohar <zohar@us.ibm.com>
|
|
*/
|
|
|
|
#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;
|
|
}
|