Home
last modified time | relevance | path

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

/security/selinux/
Dselinuxfs.c130 ssize_t length; in sel_read_enforce() local
132 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce()
134 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce()
145 ssize_t length; in sel_write_enforce() local
159 length = -EINVAL; in sel_write_enforce()
167 length = avc_has_perm(&selinux_state, in sel_write_enforce()
171 if (length) in sel_write_enforce()
189 length = count; in sel_write_enforce()
192 return length; in sel_write_enforce()
210 ssize_t length; in sel_read_handle_unknown() local
[all …]
/security/integrity/ima/
Dima_api.c222 int length; in ima_collect_measurement() local
260 length = sizeof(hash.hdr) + hash.hdr.length; in ima_collect_measurement()
261 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement()
268 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement()
360 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL); in ima_audit_measurement()
364 for (i = 0; i < iint->ima_hash->length; i++) in ima_audit_measurement()
Dima_appraise.c102 iint->ima_hash->length, 0); in ima_fix_xattr()
258 iint->ima_hash->length) in xattr_verify()
265 iint->ima_hash->length); in xattr_verify()
281 iint->ima_hash->length); in xattr_verify()
292 iint->ima_hash->length); in xattr_verify()
Dima_crypto.c341 hash->length = crypto_ahash_digestsize(tfm); in ima_calc_file_hash_atfm()
467 hash->length = crypto_shash_digestsize(tfm); in ima_calc_file_hash_tfm()
548 hash->length = hash_digest_size[ima_hash_algo]; in ima_calc_file_hash()
672 hash->length = crypto_ahash_digestsize(tfm); in calc_buffer_ahash_atfm()
730 hash->length = crypto_shash_digestsize(tfm); in calc_buffer_shash_tfm()
875 hash->length = crypto_shash_digestsize(tfm); in ima_calc_boot_aggregate()
Dima_init.c61 iint->ima_hash->length = hash_digest_size[ima_hash_algo]; in ima_add_boot_aggregate()
Dima_template_lib.c326 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init()
362 cur_digestsize = hash.hdr.length; in ima_eventdigest_init()
381 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init()
Dima_main.c565 copied_size = min_t(size_t, iint->ima_hash->length, buf_size); in __ima_inode_hash()
938 iint.ima_hash->length = hash_digest_size[ima_hash_algo]; in process_buffer_measurement()
/security/integrity/evm/
Devm_main.c247 digest.digest, digest.hdr.length); in evm_verify_hmac()
277 pr_debug("digest: (%d) [%*phN]\n", digest.hdr.length, digest.hdr.length, in evm_verify_hmac()
Devm_crypto.c233 data->hdr.length = crypto_shash_digestsize(desc->tfm); in evm_calc_hmac_or_hash()
/security/integrity/
Dintegrity.h98 u8 length; member
/security/selinux/ss/
Dservices.c478 u32 length; in security_dump_masked_av() local
500 &scontext_name, &length) < 0) in security_dump_masked_av()
504 &tcontext_name, &length) < 0) in security_dump_masked_av()
929 u32 length; in security_bounded_transition() local
932 &old_name, &length) && in security_bounded_transition()
934 &new_name, &length)) { in security_bounded_transition()
/security/
DKconfig.hardening139 (index 0), and sizes (0 length), so it is therefore more
/security/smack/
Dsmack_lsm.c4367 size_t length; in smack_key_getsecurity() local
4378 length = strlen(copy) + 1; in smack_key_getsecurity()
4381 return length; in smack_key_getsecurity()