/security/integrity/ima/ |
D | ima_queue.c | 49 int pcr) in ima_lookup_digest_entry() argument 60 if ((rc == 0) && (qe->entry->pcr == pcr)) { in ima_lookup_digest_entry() 138 static int ima_pcr_extend(struct tpm_digest *digests_arg, int pcr) in ima_pcr_extend() argument 145 result = tpm_pcr_extend(ima_tpm_chip, pcr, digests_arg); in ima_pcr_extend() 172 if (ima_lookup_digest_entry(digest, entry->pcr)) { in ima_add_template_entry() 190 tpmresult = ima_pcr_extend(digests_arg, entry->pcr); in ima_add_template_entry()
|
D | ima_api.c | 104 const unsigned char *filename, int pcr) in ima_store_template() argument 121 entry->pcr = pcr; in ima_store_template() 190 enum ima_hooks func, int *pcr, in ima_get_action() argument 199 flags, pcr, template_desc, func_data, in ima_get_action() 308 int xattr_len, const struct modsig *modsig, int pcr, in ima_store_measurement() argument 330 if (iint->measured_pcrs & (0x1 << pcr) && !modsig) in ima_store_measurement() 340 result = ima_store_template(entry, violation, inode, filename, pcr); in ima_store_measurement() 343 iint->measured_pcrs |= (0x1 << pcr); in ima_store_measurement()
|
D | ima.h | 99 int pcr; member 259 enum ima_hooks func, int *pcr, 269 int xattr_len, const struct modsig *modsig, int pcr, 274 int pcr, const char *func_data, 283 const unsigned char *filename, int pcr); 290 int mask, int flags, int *pcr, 315 const struct modsig *modsig, int pcr); 333 const struct modsig *modsig, int pcr) in ima_check_blacklist() argument
|
D | ima_main.c | 213 int pcr = CONFIG_IMA_MEASURE_PCR_IDX; in process_measurement() local 229 mask, func, &pcr, &template_desc, NULL, in process_measurement() 304 if ((action & IMA_MEASURE) && (iint->measured_pcrs & (0x1 << pcr))) in process_measurement() 360 xattr_value, xattr_len, modsig, pcr, in process_measurement() 363 rc = ima_check_blacklist(iint, modsig, pcr); in process_measurement() 459 int pcr; in ima_file_mprotect() local 470 &pcr, &template, NULL, NULL); in ima_file_mprotect() 882 int pcr, const char *func_data, in process_buffer_measurement() argument 927 secid, 0, func, &pcr, &template, in process_buffer_measurement() 933 if (!pcr) in process_buffer_measurement() [all …]
|
D | ima_fs.c | 133 u32 pcr, namelen, template_data_len; /* temporary fields */ in ima_measurements_show() local 150 pcr = !ima_canonical_fmt ? e->pcr : (__force u32)cpu_to_le32(e->pcr); in ima_measurements_show() 151 ima_putc(m, &pcr, sizeof(e->pcr)); in ima_measurements_show() 234 seq_printf(m, "%2d ", e->pcr); in ima_ascii_measurements_show()
|
D | ima_policy.c | 84 int pcr; member 692 int mask, int flags, int *pcr, in ima_match_policy() argument 733 if ((pcr) && (entry->flags & IMA_PCR)) in ima_match_policy() 734 *pcr = entry->pcr; in ima_match_policy() 1660 result = kstrtoint(args[0].from, 10, &entry->pcr); in ima_parse_rule() 1661 if (result || INVALID_PCR(entry->pcr)) in ima_parse_rule() 1942 snprintf(tbuf, sizeof(tbuf), "%d", entry->pcr); in ima_policy_show()
|
D | ima_appraise.c | 345 const struct modsig *modsig, int pcr) in ima_check_blacklist() argument 362 pcr, NULL, false, NULL, 0); in ima_check_blacklist()
|
D | ima_template.c | 524 entry->pcr = !ima_canonical_fmt ? *(u32 *)(hdr[HDR_PCR].data) : in ima_restore_measurement_list()
|