Home
last modified time | relevance | path

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

/Linux-v4.19/security/integrity/
Diint.c38 struct integrity_iint_cache *iint; in __integrity_iint_find() local
42 iint = rb_entry(n, struct integrity_iint_cache, rb_node); in __integrity_iint_find()
44 if (inode < iint->inode) in __integrity_iint_find()
46 else if (inode > iint->inode) in __integrity_iint_find()
54 return iint; in __integrity_iint_find()
62 struct integrity_iint_cache *iint; in integrity_iint_find() local
68 iint = __integrity_iint_find(inode); in integrity_iint_find()
71 return iint; in integrity_iint_find()
74 static void iint_free(struct integrity_iint_cache *iint) in iint_free() argument
76 kfree(iint->ima_hash); in iint_free()
[all …]
DMakefile8 integrity-y := iint.o
/Linux-v4.19/security/integrity/ima/
Dima_appraise.c64 struct integrity_iint_cache *iint) in ima_fix_xattr() argument
67 u8 algo = iint->ima_hash->algo; in ima_fix_xattr()
71 iint->ima_hash->xattr.sha1.type = IMA_XATTR_DIGEST; in ima_fix_xattr()
74 iint->ima_hash->xattr.ng.type = IMA_XATTR_DIGEST_NG; in ima_fix_xattr()
75 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr()
78 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr()
79 (sizeof(iint->ima_hash->xattr) - offset) + in ima_fix_xattr()
80 iint->ima_hash->length, 0); in ima_fix_xattr()
85 enum integrity_status ima_get_cache_status(struct integrity_iint_cache *iint, in ima_get_cache_status() argument
90 return iint->ima_mmap_status; in ima_get_cache_status()
[all …]
Dima_main.c84 struct integrity_iint_cache *iint, in ima_rdwr_violation_check() argument
96 if (!iint) in ima_rdwr_violation_check()
97 iint = integrity_iint_find(inode); in ima_rdwr_violation_check()
99 if (iint && test_bit(IMA_MUST_MEASURE, in ima_rdwr_violation_check()
100 &iint->atomic_flags)) in ima_rdwr_violation_check()
105 set_bit(IMA_MUST_MEASURE, &iint->atomic_flags); in ima_rdwr_violation_check()
116 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
119 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
123 static void ima_check_last_writer(struct integrity_iint_cache *iint, in ima_check_last_writer() argument
132 mutex_lock(&iint->mutex); in ima_check_last_writer()
[all …]
Dima_api.c131 struct integrity_iint_cache *iint, in ima_add_violation() argument
136 struct ima_event_data event_data = {iint, file, filename, NULL, 0, in ima_add_violation()
198 int ima_collect_measurement(struct integrity_iint_cache *iint, in ima_collect_measurement() argument
214 if (iint->flags & IMA_COLLECTED) in ima_collect_measurement()
237 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement()
243 iint->ima_hash = tmpbuf; in ima_collect_measurement()
244 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement()
245 iint->version = i_version; in ima_collect_measurement()
249 iint->flags |= IMA_COLLECTED; in ima_collect_measurement()
277 void ima_store_measurement(struct integrity_iint_cache *iint, in ima_store_measurement() argument
[all …]
Dima_init.c51 struct integrity_iint_cache tmp_iint, *iint = &tmp_iint; in ima_add_boot_aggregate() local
52 struct ima_event_data event_data = {iint, NULL, boot_aggregate_name, in ima_add_boot_aggregate()
61 memset(iint, 0, sizeof(*iint)); in ima_add_boot_aggregate()
63 iint->ima_hash = &hash.hdr; in ima_add_boot_aggregate()
64 iint->ima_hash->algo = HASH_ALGO_SHA1; in ima_add_boot_aggregate()
65 iint->ima_hash->length = SHA1_DIGEST_SIZE; in ima_add_boot_aggregate()
Dima.h62 struct integrity_iint_cache *iint; member
144 struct integrity_iint_cache *iint,
197 int ima_collect_measurement(struct integrity_iint_cache *iint,
200 void ima_store_measurement(struct integrity_iint_cache *iint, struct file *file,
204 void ima_audit_measurement(struct integrity_iint_cache *iint,
239 struct integrity_iint_cache *iint,
244 void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file);
245 enum integrity_status ima_get_cache_status(struct integrity_iint_cache *iint,
254 struct integrity_iint_cache *iint, in ima_appraise_measurement() argument
269 static inline void ima_update_xattr(struct integrity_iint_cache *iint, in ima_update_xattr() argument
[all …]
Dima_template_lib.c281 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init()
282 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()
283 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init()
319 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init()
320 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init()
322 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init()
/Linux-v4.19/security/integrity/evm/
Devm_main.c135 struct integrity_iint_cache *iint) in evm_verify_hmac() argument
144 if (iint && (iint->evm_status == INTEGRITY_PASS || in evm_verify_hmac()
145 iint->evm_status == INTEGRITY_PASS_IMMUTABLE)) in evm_verify_hmac()
146 return iint->evm_status; in evm_verify_hmac()
202 if (iint) in evm_verify_hmac()
203 iint->flags |= EVM_IMMUTABLE_DIGSIG; in evm_verify_hmac()
223 if (iint) in evm_verify_hmac()
224 iint->evm_status = evm_status; in evm_verify_hmac()
272 struct integrity_iint_cache *iint) in evm_verifyxattr() argument
277 if (!iint) { in evm_verifyxattr()
[all …]
Devm_crypto.c275 struct integrity_iint_cache *iint; in evm_is_immutable() local
278 iint = integrity_iint_find(inode); in evm_is_immutable()
279 if (iint && (iint->flags & EVM_IMMUTABLE_DIGSIG)) in evm_is_immutable()
/Linux-v4.19/include/linux/
Devm.h23 struct integrity_iint_cache *iint);
58 struct integrity_iint_cache *iint) in evm_verifyxattr() argument