Searched refs:length (Results 1 – 13 of 13) sorted by relevance
/security/selinux/ |
D | selinuxfs.c | 130 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/ |
D | ima_api.c | 222 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()
|
D | ima_appraise.c | 102 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()
|
D | ima_crypto.c | 341 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()
|
D | ima_init.c | 61 iint->ima_hash->length = hash_digest_size[ima_hash_algo]; in ima_add_boot_aggregate()
|
D | ima_template_lib.c | 326 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()
|
D | ima_main.c | 565 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/ |
D | evm_main.c | 247 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()
|
D | evm_crypto.c | 233 data->hdr.length = crypto_shash_digestsize(desc->tfm); in evm_calc_hmac_or_hash()
|
/security/integrity/ |
D | integrity.h | 98 u8 length; member
|
/security/selinux/ss/ |
D | services.c | 478 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/ |
D | Kconfig.hardening | 139 (index 0), and sizes (0 length), so it is therefore more
|
/security/smack/ |
D | smack_lsm.c | 4367 size_t length; in smack_key_getsecurity() local 4378 length = strlen(copy) + 1; in smack_key_getsecurity() 4381 return length; in smack_key_getsecurity()
|