• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/security/integrity/ima/

Lines Matching refs:iint

29 /* ima_iint_find_get - return the iint associated with an inode
31 * ima_iint_find_get gets a reference to the iint. Caller must
32 * remember to put the iint reference.
36 struct ima_iint_cache *iint;
39 iint = radix_tree_lookup(&ima_iint_store, (unsigned long)inode);
40 if (!iint)
42 kref_get(&iint->refcount);
45 return iint;
49 * ima_inode_alloc - allocate an iint associated with an inode
54 struct ima_iint_cache *iint = NULL;
57 iint = kmem_cache_alloc(iint_cache, GFP_NOFS);
58 if (!iint)
66 rc = radix_tree_insert(&ima_iint_store, (unsigned long)inode, iint);
71 kmem_cache_free(iint_cache, iint);
76 /* iint_free - called when the iint refcount goes to zero */
79 struct ima_iint_cache *iint = container_of(kref, struct ima_iint_cache,
81 iint->version = 0;
82 iint->flags = 0UL;
83 if (iint->readcount != 0) {
85 iint->readcount);
86 iint->readcount = 0;
88 if (iint->writecount != 0) {
90 iint->writecount);
91 iint->writecount = 0;
93 if (iint->opencount != 0) {
95 iint->opencount);
96 iint->opencount = 0;
98 kref_init(&iint->refcount);
99 kmem_cache_free(iint_cache, iint);
104 struct ima_iint_cache *iint = container_of(rcu_head,
106 kref_put(&iint->refcount, iint_free);
113 * Free the integrity information(iint) associated with an inode.
117 struct ima_iint_cache *iint;
120 iint = radix_tree_delete(&ima_iint_store, (unsigned long)inode);
122 if (iint)
123 call_rcu(&iint->rcu, iint_rcu_free);
128 struct ima_iint_cache *iint = foo;
130 memset(iint, 0, sizeof *iint);
131 iint->version = 0;
132 iint->flags = 0UL;
133 mutex_init(&iint->mutex);
134 iint->readcount = 0;
135 iint->writecount = 0;
136 iint->opencount = 0;
137 kref_init(&iint->refcount);