Home
last modified time | relevance | path

Searched refs:iint (Results 1 – 10 of 10) sorted by relevance

/security/integrity/
Diint.c35 struct integrity_iint_cache *iint; in __integrity_iint_find() local
39 iint = rb_entry(n, struct integrity_iint_cache, rb_node); in __integrity_iint_find()
41 if (inode < iint->inode) in __integrity_iint_find()
43 else if (inode > iint->inode) in __integrity_iint_find()
46 return iint; in __integrity_iint_find()
57 struct integrity_iint_cache *iint; in integrity_iint_find() local
63 iint = __integrity_iint_find(inode); in integrity_iint_find()
66 return iint; in integrity_iint_find()
77 static inline void iint_lockdep_annotate(struct integrity_iint_cache *iint, in iint_lockdep_annotate() argument
88 lockdep_set_class(&iint->mutex, &iint_mutex_key[depth]); in iint_lockdep_annotate()
[all …]
DMakefile8 integrity-y := iint.o
/security/integrity/ima/
Dima_appraise.c86 struct integrity_iint_cache *iint) in ima_fix_xattr() argument
89 u8 algo = iint->ima_hash->algo; in ima_fix_xattr()
93 iint->ima_hash->xattr.sha1.type = IMA_XATTR_DIGEST; in ima_fix_xattr()
96 iint->ima_hash->xattr.ng.type = IMA_XATTR_DIGEST_NG; in ima_fix_xattr()
97 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr()
100 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr()
101 (sizeof(iint->ima_hash->xattr) - offset) + in ima_fix_xattr()
102 iint->ima_hash->length, 0); in ima_fix_xattr()
107 enum integrity_status ima_get_cache_status(struct integrity_iint_cache *iint, in ima_get_cache_status() argument
112 return iint->ima_mmap_status; in ima_get_cache_status()
[all …]
Dima_main.c117 struct integrity_iint_cache *iint, in ima_rdwr_violation_check() argument
129 if (!iint) in ima_rdwr_violation_check()
130 iint = integrity_iint_find(inode); in ima_rdwr_violation_check()
132 if (iint && test_bit(IMA_MUST_MEASURE, in ima_rdwr_violation_check()
133 &iint->atomic_flags)) in ima_rdwr_violation_check()
138 set_bit(IMA_MUST_MEASURE, &iint->atomic_flags); in ima_rdwr_violation_check()
149 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
152 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
156 static void ima_check_last_writer(struct integrity_iint_cache *iint, in ima_check_last_writer() argument
165 mutex_lock(&iint->mutex); in ima_check_last_writer()
[all …]
Dima_api.c134 struct integrity_iint_cache *iint, in ima_add_violation() argument
139 struct ima_event_data event_data = { .iint = iint, in ima_add_violation()
213 int ima_collect_measurement(struct integrity_iint_cache *iint, in ima_collect_measurement() argument
238 if (iint->flags & IMA_COLLECTED) in ima_collect_measurement()
261 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement()
267 iint->ima_hash = tmpbuf; in ima_collect_measurement()
268 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement()
269 iint->version = i_version; in ima_collect_measurement()
271 iint->real_ino = real_inode->i_ino; in ima_collect_measurement()
272 iint->real_dev = real_inode->i_sb->s_dev; in ima_collect_measurement()
[all …]
Dima_init.c47 struct integrity_iint_cache tmp_iint, *iint = &tmp_iint; in ima_add_boot_aggregate() local
48 struct ima_event_data event_data = { .iint = iint, in ima_add_boot_aggregate()
57 memset(iint, 0, sizeof(*iint)); in ima_add_boot_aggregate()
59 iint->ima_hash = &hash.hdr; in ima_add_boot_aggregate()
60 iint->ima_hash->algo = ima_hash_algo; in ima_add_boot_aggregate()
61 iint->ima_hash->length = hash_digest_size[ima_hash_algo]; in ima_add_boot_aggregate()
Dima.h63 struct integrity_iint_cache *iint; member
149 struct integrity_iint_cache *iint,
263 int ima_collect_measurement(struct integrity_iint_cache *iint,
266 void ima_store_measurement(struct integrity_iint_cache *iint, struct file *file,
276 void ima_audit_measurement(struct integrity_iint_cache *iint,
314 int ima_check_blacklist(struct integrity_iint_cache *iint,
317 struct integrity_iint_cache *iint,
323 void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file);
324 enum integrity_status ima_get_cache_status(struct integrity_iint_cache *iint,
332 static inline int ima_check_blacklist(struct integrity_iint_cache *iint, in ima_check_blacklist() argument
[all …]
Dima_template_lib.c324 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init()
325 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()
326 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init()
380 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init()
381 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init()
383 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init()
/security/integrity/evm/
Devm_main.c177 struct integrity_iint_cache *iint) in evm_verify_hmac() argument
186 if (iint && (iint->evm_status == INTEGRITY_PASS || in evm_verify_hmac()
187 iint->evm_status == INTEGRITY_PASS_IMMUTABLE)) in evm_verify_hmac()
188 return iint->evm_status; in evm_verify_hmac()
252 if (iint) in evm_verify_hmac()
253 iint->flags |= EVM_IMMUTABLE_DIGSIG; in evm_verify_hmac()
280 if (iint) in evm_verify_hmac()
281 iint->evm_status = evm_status; in evm_verify_hmac()
412 struct integrity_iint_cache *iint) in evm_verifyxattr() argument
417 if (!iint) { in evm_verifyxattr()
[all …]
Devm_crypto.c326 struct integrity_iint_cache *iint; in evm_is_immutable() local
329 iint = integrity_iint_find(inode); in evm_is_immutable()
330 if (iint && (iint->flags & EVM_IMMUTABLE_DIGSIG)) in evm_is_immutable()