Home
last modified time | relevance | path

Searched refs:length (Results 1 – 16 of 16) sorted by relevance

/security/selinux/
A Dselinuxfs.c166 if (length) in sel_write_enforce()
590 if (length) in sel_write_load()
642 if (length) in sel_write_context()
646 if (length) in sel_write_context()
650 if (length) in sel_write_context()
688 if (length) in sel_write_checkreqprot()
866 if (length) in sel_write_access()
884 if (length) in sel_write_access()
888 if (length) in sel_write_access()
918 if (length) in sel_write_create()
[all …]
/security/keys/
A Dbig_key.c26 size_t length; member
75 payload->length = datalen; in big_key_preparse()
171 if (key_is_positive(key) && payload->length > BIG_KEY_FILE_THRESHOLD) in big_key_revoke()
182 if (payload->length > BIG_KEY_FILE_THRESHOLD) { in big_key_destroy()
219 payload->length, in big_key_describe()
220 payload->length > BIG_KEY_FILE_THRESHOLD ? "file" : "buff"); in big_key_describe()
230 size_t datalen = payload->length; in big_key_read()
/security/integrity/ima/
A Dima_api.c227 hash->hdr.length = digest_len; in ima_get_verity_digest()
254 int length; in ima_collect_measurement() local
280 hash.hdr.length = hash_digest_size[algo]; in ima_collect_measurement()
299 length = sizeof(hash.hdr) + hash.hdr.length; in ima_collect_measurement()
300 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement()
307 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement()
403 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL); in ima_audit_measurement()
407 for (i = 0; i < iint->ima_hash->length; i++) in ima_audit_measurement()
A Dima_appraise.c104 iint->ima_hash->length, 0); in ima_fix_xattr()
266 hash->length = hash_digest_size[algo]; in calc_file_id_hash()
307 iint->ima_hash->length) in xattr_verify()
314 iint->ima_hash->length); in xattr_verify()
344 iint->ima_hash->length); in xattr_verify()
355 iint->ima_hash->length); in xattr_verify()
394 hash.hdr.length); in xattr_verify()
463 rc = is_binary_blacklisted(iint->ima_hash->digest, iint->ima_hash->length); in ima_check_blacklist()
A Dima_crypto.c336 hash->length = crypto_ahash_digestsize(tfm); in ima_calc_file_hash_atfm()
462 hash->length = crypto_shash_digestsize(tfm); in ima_calc_file_hash_tfm()
543 hash->length = hash_digest_size[ima_hash_algo]; in ima_calc_file_hash()
667 hash->length = crypto_ahash_digestsize(tfm); in calc_buffer_ahash_atfm()
725 hash->length = crypto_shash_digestsize(tfm); in calc_buffer_shash_tfm()
870 hash->length = crypto_shash_digestsize(tfm); in ima_calc_boot_aggregate()
A Dima_template_lib.c362 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init()
398 cur_digestsize = hash.hdr.length; in ima_eventdigest_init()
418 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init()
442 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ngv2_init()
A Dima_init.c60 iint->ima_hash->length = hash_digest_size[ima_hash_algo]; in ima_add_boot_aggregate()
A Dima_main.c686 copied_size = min_t(size_t, iint->ima_hash->length, buf_size); in __ima_inode_hash()
1067 iint.ima_hash->length = hash_digest_size[ima_hash_algo]; in process_buffer_measurement()
/security/keys/trusted-keys/
A Dtrusted_tpm2.c298 tpm_buf_append(&buf, sized.data, sized.length); in tpm2_seal_trusted()
320 tpm_buf_append(&buf, sized.data, sized.length); in tpm2_seal_trusted()
345 if (buf.length - offset < blob_len) { in tpm2_seal_trusted()
A Dtrusted_tpm1.c370 buf.length = buflen; in trusted_tpm_send()
421 ret = trusted_tpm_send(tb->data, tb->length); in osap()
445 ret = trusted_tpm_send(tb->data, tb->length); in oiap()
557 ret = trusted_tpm_send(tb->data, tb->length); in tpm_seal()
648 ret = trusted_tpm_send(tb->data, tb->length); in tpm_unseal()
/security/integrity/evm/
A Devm_main.c261 digest.digest, digest.hdr.length); in evm_verify_hmac()
290 pr_debug("digest: (%d) [%*phN]\n", digest.hdr.length, digest.hdr.length, in evm_verify_hmac()
A Devm_crypto.c245 data->hdr.length = crypto_shash_digestsize(desc->tfm); in evm_calc_hmac_or_hash()
/security/integrity/
A Dintegrity.h55 u8 length;
/security/selinux/ss/
A Dservices.c471 u32 length; in security_dump_masked_av() local
493 &scontext_name, &length) < 0) in security_dump_masked_av()
497 &tcontext_name, &length) < 0) in security_dump_masked_av()
921 u32 length; in security_bounded_transition() local
924 &old_name, &length) && in security_bounded_transition()
926 &new_name, &length)) { in security_bounded_transition()
/security/
A DKconfig.hardening79 (index 0), and sizes (0 length), so it is therefore more
/security/smack/
A Dsmack_lsm.c4573 size_t length; in smack_key_getsecurity() local
4584 length = strlen(copy) + 1; in smack_key_getsecurity()
4587 return length; in smack_key_getsecurity()

Completed in 40 milliseconds