summaryrefslogtreecommitdiff
path: root/security/security.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/security.c')
-rw-r--r--security/security.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/security/security.c b/security/security.c
index 8495890a5a37..bed659b53e59 100644
--- a/security/security.c
+++ b/security/security.c
@@ -20,7 +20,6 @@
#include <linux/kernel_read_file.h>
#include <linux/lsm_hooks.h>
#include <linux/integrity.h>
-#include <linux/ima.h>
#include <linux/evm.h>
#include <linux/fsnotify.h>
#include <linux/mman.h>
@@ -2310,9 +2309,6 @@ int security_inode_setxattr(struct mnt_idmap *idmap,
ret = cap_inode_setxattr(dentry, name, value, size, flags);
if (ret)
return ret;
- ret = ima_inode_setxattr(idmap, dentry, name, value, size, flags);
- if (ret)
- return ret;
return evm_inode_setxattr(idmap, dentry, name, value, size, flags);
}
@@ -2340,9 +2336,6 @@ int security_inode_set_acl(struct mnt_idmap *idmap,
kacl);
if (ret)
return ret;
- ret = ima_inode_set_acl(idmap, dentry, acl_name, kacl);
- if (ret)
- return ret;
return evm_inode_set_acl(idmap, dentry, acl_name, kacl);
}
@@ -2403,9 +2396,6 @@ int security_inode_remove_acl(struct mnt_idmap *idmap,
ret = call_int_hook(inode_remove_acl, 0, idmap, dentry, acl_name);
if (ret)
return ret;
- ret = ima_inode_remove_acl(idmap, dentry, acl_name);
- if (ret)
- return ret;
return evm_inode_remove_acl(idmap, dentry, acl_name);
}
@@ -2505,9 +2495,6 @@ int security_inode_removexattr(struct mnt_idmap *idmap,
ret = cap_inode_removexattr(idmap, dentry, name);
if (ret)
return ret;
- ret = ima_inode_removexattr(idmap, dentry, name);
- if (ret)
- return ret;
return evm_inode_removexattr(idmap, dentry, name);
}