Home
last modified time | relevance | path

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

/openbmc/linux/security/integrity/
H A 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 …]
H A DMakefile8 integrity-y := iint.o
/openbmc/linux/security/integrity/ima/
H A Dima_appraise.c88 struct integrity_iint_cache *iint) in ima_fix_xattr() argument
91 u8 algo = iint->ima_hash->algo; in ima_fix_xattr()
95 iint->ima_hash->xattr.sha1.type = IMA_XATTR_DIGEST; in ima_fix_xattr()
98 iint->ima_hash->xattr.ng.type = IMA_XATTR_DIGEST_NG; in ima_fix_xattr()
99 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr()
102 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr()
103 (sizeof(iint->ima_hash->xattr) - offset) + in ima_fix_xattr()
104 iint->ima_hash->length, 0); in ima_fix_xattr()
109 enum integrity_status ima_get_cache_status(struct integrity_iint_cache *iint, in ima_get_cache_status() argument
115 return iint->ima_mmap_status; in ima_get_cache_status()
[all …]
H A 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 …]
H A 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()
204 static bool ima_get_verity_digest(struct integrity_iint_cache *iint, in ima_get_verity_digest() argument
214 digest_len = fsverity_get_digest(iint->inode, hash->digest, NULL, &alg); in ima_get_verity_digest()
240 int ima_collect_measurement(struct integrity_iint_cache *iint, in ima_collect_measurement() argument
263 if (iint->flags & IMA_COLLECTED) in ima_collect_measurement()
282 if (iint->flags & IMA_VERITY_REQUIRED) { in ima_collect_measurement()
283 if (!ima_get_verity_digest(iint, &hash)) { in ima_collect_measurement()
297 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement()
303 iint->ima_hash = tmpbuf; in ima_collect_measurement()
[all …]
H A 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()
54 memset(iint, 0, sizeof(*iint)); in ima_add_boot_aggregate()
56 iint->ima_hash = &hash.hdr; in ima_add_boot_aggregate()
57 iint->ima_hash->algo = ima_hash_algo; in ima_add_boot_aggregate()
58 iint->ima_hash->length = hash_digest_size[ima_hash_algo]; in ima_add_boot_aggregate()
H A Dima.h63 struct integrity_iint_cache *iint; member
149 struct integrity_iint_cache *iint,
264 int ima_collect_measurement(struct integrity_iint_cache *iint,
267 void ima_store_measurement(struct integrity_iint_cache *iint, struct file *file,
277 void ima_audit_measurement(struct integrity_iint_cache *iint,
315 int ima_check_blacklist(struct integrity_iint_cache *iint,
318 struct integrity_iint_cache *iint,
324 void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file);
325 enum integrity_status ima_get_cache_status(struct integrity_iint_cache *iint,
333 static inline int ima_check_blacklist(struct integrity_iint_cache *iint, in ima_check_blacklist() argument
[all …]
H A Dima_template_lib.c358 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init()
359 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()
360 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init()
415 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init()
416 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init()
418 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init()
439 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ngv2_init()
440 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ngv2_init()
442 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ngv2_init()
443 if (event_data->iint->flags & IMA_VERITY_REQUIRED) in ima_eventdigest_ngv2_init()
/openbmc/linux/security/integrity/evm/
H A Devm_main.c172 struct integrity_iint_cache *iint) in evm_verify_hmac() argument
181 if (iint && (iint->evm_status == INTEGRITY_PASS || in evm_verify_hmac()
182 iint->evm_status == INTEGRITY_PASS_IMMUTABLE)) in evm_verify_hmac()
183 return iint->evm_status; in evm_verify_hmac()
247 if (iint) in evm_verify_hmac()
248 iint->flags |= EVM_IMMUTABLE_DIGSIG; in evm_verify_hmac()
275 if (iint) in evm_verify_hmac()
276 iint->evm_status = evm_status; in evm_verify_hmac()
407 struct integrity_iint_cache *iint) in evm_verifyxattr() argument
412 if (!iint) { in evm_verifyxattr()
[all …]
H A Devm_crypto.c325 struct integrity_iint_cache *iint; in evm_is_immutable() local
328 iint = integrity_iint_find(inode); in evm_is_immutable()
329 if (iint && (iint->flags & EVM_IMMUTABLE_DIGSIG)) in evm_is_immutable()
/openbmc/linux/include/linux/
H A Devm.h23 struct integrity_iint_cache *iint);
89 struct integrity_iint_cache *iint) in evm_verifyxattr() argument
/openbmc/linux/
H A Dopengrok0.0.log[all...]
H A Dopengrok2.0.log[all...]