]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/exec.c
LSM: imbed ima calls in the security hooks
[net-next-2.6.git] / fs / exec.c
index d49be6bc1793b57fdbfb5efc958311dd8f94801e..d164342c2b69b8e5b6c30bbf367c2b22eb4fe3a2 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -46,7 +46,6 @@
 #include <linux/proc_fs.h>
 #include <linux/mount.h>
 #include <linux/security.h>
-#include <linux/ima.h>
 #include <linux/syscalls.h>
 #include <linux/tsacct_kern.h>
 #include <linux/cn_proc.h>
@@ -1209,9 +1208,6 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
        struct linux_binfmt *fmt;
 
        retval = security_bprm_check(bprm);
-       if (retval)
-               return retval;
-       retval = ima_bprm_check(bprm);
        if (retval)
                return retval;