Searched refs:length (Results 1 – 9 of 9) sorted by relevance
/security/selinux/ |
D | selinuxfs.c | 135 ssize_t length; in sel_read_enforce() local 137 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", selinux_enforcing); in sel_read_enforce() 138 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 147 ssize_t length; in sel_write_enforce() local 150 length = -ENOMEM; in sel_write_enforce() 155 length = -EINVAL; in sel_write_enforce() 159 length = -ENOMEM; in sel_write_enforce() 164 length = -EFAULT; in sel_write_enforce() 168 length = -EINVAL; in sel_write_enforce() 173 length = task_has_security(current, SECURITY__SETENFORCE); in sel_write_enforce() [all …]
|
/security/integrity/ima/ |
D | ima_api.c | 115 memcpy(entry->digest, hash.hdr.digest, hash.hdr.length); in ima_store_template() 224 int length = sizeof(hash.hdr) + hash.hdr.length; in ima_collect_measurement() local 225 void *tmpbuf = krealloc(iint->ima_hash, length, in ima_collect_measurement() 229 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement() 294 char hash[(iint->ima_hash->length * 2) + 1]; in ima_audit_measurement() 302 for (i = 0; i < iint->ima_hash->length; i++) in ima_audit_measurement()
|
D | ima_appraise.c | 65 iint->ima_hash->length, 0); in ima_fix_xattr() 235 iint->ima_hash->length) in ima_appraise_measurement() 241 iint->ima_hash->length); in ima_appraise_measurement() 256 iint->ima_hash->length); in ima_appraise_measurement()
|
D | ima_template_lib.c | 218 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init() 236 cur_digestsize = hash.hdr.length; in ima_eventdigest_init() 255 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init()
|
D | ima_crypto.c | 241 hash->length = crypto_ahash_digestsize(tfm); in ima_calc_file_hash_atfm() 370 hash->length = crypto_shash_digestsize(tfm); in ima_calc_file_hash_tfm() 475 hash->length = crypto_shash_digestsize(tfm); in ima_calc_field_array_hash_tfm() 575 hash->length = crypto_shash_digestsize(tfm); in ima_calc_boot_aggregate()
|
D | ima_init.c | 65 iint->ima_hash->length = SHA1_DIGEST_SIZE; in ima_add_boot_aggregate()
|
/security/integrity/ |
D | integrity.h | 76 u8 length; member
|
/security/selinux/ss/ |
D | services.c | 477 u32 length; in security_dump_masked_av() local 499 &scontext_name, &length) < 0) in security_dump_masked_av() 503 &tcontext_name, &length) < 0) in security_dump_masked_av() 912 u32 length; in security_bounded_transition() local 915 &old_name, &length) && in security_bounded_transition() 917 &new_name, &length)) { in security_bounded_transition()
|
/security/smack/ |
D | smack_lsm.c | 4361 size_t length; in smack_key_getsecurity() local 4372 length = strlen(copy) + 1; in smack_key_getsecurity() 4375 return length; in smack_key_getsecurity()
|