Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
security
integrity
evm
evm_posix_acl.c
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2011 IBM Corporation
3
*
4
* Author:
5
* Mimi Zohar <
[email protected]
>
6
*
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.
10
*/
11
12
#include <linux/module.h>
13
#include <linux/xattr.h>
14
15
int
posix_xattr_acl
(
char
*
xattr
)
16
{
17
int
xattr_len
=
strlen
(xattr);
18
19
if
((
strlen
(
XATTR_NAME_POSIX_ACL_ACCESS
) == xattr_len)
20
&& (
strncmp
(
XATTR_NAME_POSIX_ACL_ACCESS
, xattr, xattr_len) == 0))
21
return
1;
22
if
((
strlen
(
XATTR_NAME_POSIX_ACL_DEFAULT
) == xattr_len)
23
&& (
strncmp
(
XATTR_NAME_POSIX_ACL_DEFAULT
, xattr, xattr_len) == 0))
24
return
1;
25
return
0;
26
}
Generated on Thu Jan 10 2013 15:03:10 for Linux Kernel by
1.8.2