Lines Matching defs:inode
10 * - cache integrity information in the inode security blob
19 * ima_iint_find - Return the iint associated with an inode
20 * @inode: Pointer to the inode
22 * Return the IMA integrity information (iint) associated with an inode, if the
23 * inode was processed by IMA.
27 struct ima_iint_cache *ima_iint_find(struct inode *inode)
29 if (!IS_IMA(inode))
32 return ima_inode_get_iint(inode);
44 struct inode *inode)
49 int depth = inode->i_sb->s_stack_depth;
59 struct inode *inode)
72 ima_iint_lockdep_annotate(iint, inode);
83 * ima_inode_get - Find or allocate an iint associated with an inode
84 * @inode: Pointer to the inode
86 * Find an iint associated with an inode, and allocate a new one if not found.
91 struct ima_iint_cache *ima_inode_get(struct inode *inode)
95 iint = ima_iint_find(inode);
103 ima_iint_init_always(iint, inode);
105 inode->i_flags |= S_IMA;
106 ima_inode_set_iint(inode, iint);
112 * ima_inode_free - Called on inode free
113 * @inode: Pointer to the inode
115 * Free the iint associated with an inode.
117 void ima_inode_free(struct inode *inode)
121 if (!IS_IMA(inode))
124 iint = ima_iint_find(inode);
125 ima_inode_set_iint(inode, NULL);