-
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.
This patch replaces the generic integrity hooks, for which IMA registered itself, with IMA integrity hooks in the appropriate places directly in the fs directory. Signed-off-by: Mimi Zohar <zohar@us.ibm.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
- Loading branch information
Mimi Zohar
authored and
James Morris
committed
Feb 5, 2009
1 parent
659aaf2
commit 6146f0d
Showing
7 changed files
with
86 additions
and
7 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
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
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
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,44 @@ | ||
/* | ||
* Copyright (C) 2008 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/fs.h> | ||
|
||
#ifndef _LINUX_IMA_H | ||
#define _LINUX_IMA_H | ||
|
||
static inline int ima_bprm_check(struct linux_binprm *bprm) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline int ima_inode_alloc(struct inode *inode) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void ima_inode_free(struct inode *inode) | ||
{ | ||
return; | ||
} | ||
|
||
static inline int ima_path_check(struct path *path, int mask) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void ima_file_free(struct file *file) | ||
{ | ||
return; | ||
} | ||
|
||
static inline int ima_file_mmap(struct file *file, unsigned long prot) | ||
{ | ||
return 0; | ||
} | ||
#endif /* _LINUX_IMA_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