integrity: shmem zero fix
Subsystems (2)
PATCH 1/1 integrity: shmem zero fix
Based on comments from Mike Frysinger and Randy Dunlap,
- moved ima.h include before CONFIG_SHMEM test
- added 'struct linux_binprm' in ima.h
- moved fs.h include within _LINUX_IMA_H definition
Signed-off-by Mimi Zohar <[email protected]>
---
include/linux/ima.h +3 -2
@@ -7,11 +7,12 @@* the Free Software Foundation, version 2 of the License. */ -#include <linux/fs.h> -#ifndef _LINUX_IMA_H#define _LINUX_IMA_H +#include <linux/fs.h> +struct linux_binprm ; +#ifdef CONFIG_IMA extern int ima_bprm_check (struct linux_binprm *bprm);extern int ima_inode_alloc (struct inode *inode);
mm/shmem.c +1 -1
@@ -28,6 +28,7 @@#include <linux/mm.h> #include <linux/module.h> #include <linux/swap.h> +#include <linux/ima.h> static struct vfsmount *shm_mnt;
@@ -59,7 +60,6 @@ static struct vfsmount *shm_mnt;#include <linux/highmem.h> #include <linux/seq_file.h> #include <linux/magic.h> -#include <linux/ima.h> #include <asm/uaccess.h> #include <asm/div64.h>
Signature · 1 line
1.5.6.6