-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 264482 b: refs/heads/master c: 3e1be52 h: refs/heads/master v: v3
- Loading branch information
Mimi Zohar
committed
Jul 18, 2011
1 parent
083f41e
commit 85646bf
Showing
4 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 6be5cc5246f807fd8ede9f5f1bb2826f2c598658 | ||
refs/heads/master: 3e1be52d6c6b21d9080dd886c0e609e009831562 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* evm.h | ||
* | ||
* Copyright (c) 2009 IBM Corporation | ||
* Author: Mimi Zohar <zohar@us.ibm.com> | ||
*/ | ||
|
||
#ifndef _LINUX_EVM_H | ||
#define _LINUX_EVM_H | ||
|
||
#include <linux/integrity.h> | ||
|
||
#ifdef CONFIG_EVM | ||
extern enum integrity_status evm_verifyxattr(struct dentry *dentry, | ||
const char *xattr_name, | ||
void *xattr_value, | ||
size_t xattr_value_len); | ||
extern int evm_inode_setxattr(struct dentry *dentry, const char *name, | ||
const void *value, size_t size); | ||
extern void evm_inode_post_setxattr(struct dentry *dentry, | ||
const char *xattr_name, | ||
const void *xattr_value, | ||
size_t xattr_value_len); | ||
extern int evm_inode_removexattr(struct dentry *dentry, const char *xattr_name); | ||
#else | ||
#ifdef CONFIG_INTEGRITY | ||
static inline enum integrity_status evm_verifyxattr(struct dentry *dentry, | ||
const char *xattr_name, | ||
void *xattr_value, | ||
size_t xattr_value_len) | ||
{ | ||
return INTEGRITY_UNKNOWN; | ||
} | ||
#endif | ||
|
||
static inline int evm_inode_setxattr(struct dentry *dentry, const char *name, | ||
const void *value, size_t size) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void evm_inode_post_setxattr(struct dentry *dentry, | ||
const char *xattr_name, | ||
const void *xattr_value, | ||
size_t xattr_value_len) | ||
{ | ||
return; | ||
} | ||
|
||
static inline int evm_inode_removexattr(struct dentry *dentry, | ||
const char *xattr_name) | ||
{ | ||
return 0; | ||
} | ||
#endif /* CONFIG_EVM_H */ | ||
#endif /* LINUX_EVM_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters