Home
last modified time | relevance | path

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

/security/selinux/
Dselinuxfs.c135 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/
Dima_api.c115 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()
Dima_appraise.c65 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()
Dima_template_lib.c218 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()
Dima_crypto.c241 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()
Dima_init.c65 iint->ima_hash->length = SHA1_DIGEST_SIZE; in ima_add_boot_aggregate()
/security/integrity/
Dintegrity.h76 u8 length; member
/security/selinux/ss/
Dservices.c477 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/
Dsmack_lsm.c4361 size_t length; in smack_key_getsecurity() local
4372 length = strlen(copy) + 1; in smack_key_getsecurity()
4375 return length; in smack_key_getsecurity()