Skip to content

Commit 85a17f5

Browse files
eparisAl Viro
authored andcommitted
ima: call ima_inode_free ima_inode_free
ima_inode_free() has some funky #define just to confuse the crap out of me. void ima_iint_delete(struct inode *inode) and then things actually call ima_inode_free() and nothing calls ima_iint_delete(). Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent e0d5bd2 commit 85a17f5

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎security/integrity/ima/ima.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ void ima_template_show(struct seq_file *m, void *e,
127127
*/
128128
struct ima_iint_cache *ima_iint_insert(struct inode *inode);
129129
struct ima_iint_cache *ima_iint_find_get(struct inode *inode);
130-
void ima_iint_delete(struct inode *inode);
131130
void iint_free(struct kref *kref);
132131
void iint_rcu_free(struct rcu_head *rcu);
133132

‎security/integrity/ima/ima_iint.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#include <linux/radix-tree.h>
2020
#include "ima.h"
2121

22-
#define ima_iint_delete ima_inode_free
23-
2422
RADIX_TREE(ima_iint_store, GFP_ATOMIC);
2523
DEFINE_SPINLOCK(ima_iint_lock);
2624

@@ -111,12 +109,12 @@ void iint_rcu_free(struct rcu_head *rcu_head)
111109
}
112110

113111
/**
114-
* ima_iint_delete - called on integrity_inode_free
112+
* ima_inode_free - called on security_inode_free
115113
* @inode: pointer to the inode
116114
*
117115
* Free the integrity information(iint) associated with an inode.
118116
*/
119-
void ima_iint_delete(struct inode *inode)
117+
void ima_inode_free(struct inode *inode)
120118
{
121119
struct ima_iint_cache *iint;
122120

0 commit comments

Comments
 (0)