diff options
author | James Morris <james.l.morris@oracle.com> | 2012-09-11 23:16:37 -0400 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2012-09-11 23:16:37 -0400 |
commit | 9ddf6aa8cbc07764c7fe33cfdb8644ca5e828252 (patch) | |
tree | d0796f172c096147e1a7c0337279bf7dca6f13f2 /security/security.c | |
parent | b25b09ecf98bf6a32f3732281c2db13be6aeb14c (diff) | |
parent | 8606404fa555c2ee691376fcc640ab89fe752035 (diff) |
Merge branch 'next-ima-appraisal' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity into next
As requested by Mimi, this adds the IMA Appraisal feature.
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index 68c1b9b45d93..d23b43522a5a 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -573,6 +573,9 @@ int security_inode_setxattr(struct dentry *dentry, const char *name, | |||
573 | ret = security_ops->inode_setxattr(dentry, name, value, size, flags); | 573 | ret = security_ops->inode_setxattr(dentry, name, value, size, flags); |
574 | if (ret) | 574 | if (ret) |
575 | return ret; | 575 | return ret; |
576 | ret = ima_inode_setxattr(dentry, name, value, size); | ||
577 | if (ret) | ||
578 | return ret; | ||
576 | return evm_inode_setxattr(dentry, name, value, size); | 579 | return evm_inode_setxattr(dentry, name, value, size); |
577 | } | 580 | } |
578 | 581 | ||
@@ -608,6 +611,9 @@ int security_inode_removexattr(struct dentry *dentry, const char *name) | |||
608 | ret = security_ops->inode_removexattr(dentry, name); | 611 | ret = security_ops->inode_removexattr(dentry, name); |
609 | if (ret) | 612 | if (ret) |
610 | return ret; | 613 | return ret; |
614 | ret = ima_inode_removexattr(dentry, name); | ||
615 | if (ret) | ||
616 | return ret; | ||
611 | return evm_inode_removexattr(dentry, name); | 617 | return evm_inode_removexattr(dentry, name); |
612 | } | 618 | } |
613 | 619 | ||