aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/ima.h5
-rw-r--r--mm/shmem.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ima.h b/include/linux/ima.h
index 6db30a328d98..0e2aa45cb0ce 100644
--- a/include/linux/ima.h
+++ b/include/linux/ima.h
@@ -7,11 +7,12 @@
7 * the Free Software Foundation, version 2 of the License. 7 * the Free Software Foundation, version 2 of the License.
8 */ 8 */
9 9
10#include <linux/fs.h>
11
12#ifndef _LINUX_IMA_H 10#ifndef _LINUX_IMA_H
13#define _LINUX_IMA_H 11#define _LINUX_IMA_H
14 12
13#include <linux/fs.h>
14struct linux_binprm;
15
15#ifdef CONFIG_IMA 16#ifdef CONFIG_IMA
16extern int ima_bprm_check(struct linux_binprm *bprm); 17extern int ima_bprm_check(struct linux_binprm *bprm);
17extern int ima_inode_alloc(struct inode *inode); 18extern int ima_inode_alloc(struct inode *inode);
diff --git a/mm/shmem.c b/mm/shmem.c
index 75199888a6bd..8135fac294ee 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -28,6 +28,7 @@
28#include <linux/mm.h> 28#include <linux/mm.h>
29#include <linux/module.h> 29#include <linux/module.h>
30#include <linux/swap.h> 30#include <linux/swap.h>
31#include <linux/ima.h>
31 32
32static struct vfsmount *shm_mnt; 33static struct vfsmount *shm_mnt;
33 34
@@ -59,7 +60,6 @@ static struct vfsmount *shm_mnt;
59#include <linux/highmem.h> 60#include <linux/highmem.h>
60#include <linux/seq_file.h> 61#include <linux/seq_file.h>
61#include <linux/magic.h> 62#include <linux/magic.h>
62#include <linux/ima.h>
63 63
64#include <asm/uaccess.h> 64#include <asm/uaccess.h>
65#include <asm/div64.h> 65#include <asm/div64.h>