aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/integrity/ima/ima.h')
-rw-r--r--security/integrity/ima/ima.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h
index 3fbcd1dda0ef..7557791e954d 100644
--- a/security/integrity/ima/ima.h
+++ b/security/integrity/ima/ima.h
@@ -100,6 +100,8 @@ static inline unsigned long ima_hash_key(u8 *digest)
100 100
101/* integrity data associated with an inode */ 101/* integrity data associated with an inode */
102struct ima_iint_cache { 102struct ima_iint_cache {
103 struct rb_node rb_node; /* rooted in ima_iint_tree */
104 struct inode *inode; /* back pointer to inode in question */
103 u64 version; /* track inode changes */ 105 u64 version; /* track inode changes */
104 unsigned long flags; 106 unsigned long flags;
105 u8 digest[IMA_DIGEST_SIZE]; 107 u8 digest[IMA_DIGEST_SIZE];
@@ -108,7 +110,6 @@ struct ima_iint_cache {
108 long writecount; /* measured files writecount */ 110 long writecount; /* measured files writecount */
109 long opencount; /* opens reference count */ 111 long opencount; /* opens reference count */
110 struct kref refcount; /* ima_iint_cache reference count */ 112 struct kref refcount; /* ima_iint_cache reference count */
111 struct rcu_head rcu;
112}; 113};
113 114
114/* LIM API function definitions */ 115/* LIM API function definitions */
@@ -122,13 +123,12 @@ int ima_store_template(struct ima_template_entry *entry, int violation,
122void ima_template_show(struct seq_file *m, void *e, 123void ima_template_show(struct seq_file *m, void *e,
123 enum ima_show_type show); 124 enum ima_show_type show);
124 125
125/* radix tree calls to lookup, insert, delete 126/* rbtree tree calls to lookup, insert, delete
126 * integrity data associated with an inode. 127 * integrity data associated with an inode.
127 */ 128 */
128struct ima_iint_cache *ima_iint_insert(struct inode *inode); 129struct ima_iint_cache *ima_iint_insert(struct inode *inode);
129struct ima_iint_cache *ima_iint_find_get(struct inode *inode); 130struct ima_iint_cache *ima_iint_find_get(struct inode *inode);
130void iint_free(struct kref *kref); 131void iint_free(struct kref *kref);
131void iint_rcu_free(struct rcu_head *rcu);
132 132
133/* IMA policy related functions */ 133/* IMA policy related functions */
134enum ima_hooks { FILE_CHECK = 1, FILE_MMAP, BPRM_CHECK }; 134enum ima_hooks { FILE_CHECK = 1, FILE_MMAP, BPRM_CHECK };