Home
last modified time | relevance | path

Searched refs:pcr (Results 1 – 8 of 8) sorted by relevance

/security/integrity/ima/
Dima_queue.c49 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()
Dima_api.c104 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()
Dima.h99 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
Dima_main.c213 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 …]
Dima_fs.c133 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()
Dima_policy.c84 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()
Dima_appraise.c345 const struct modsig *modsig, int pcr) in ima_check_blacklist() argument
362 pcr, NULL, false, NULL, 0); in ima_check_blacklist()
Dima_template.c524 entry->pcr = !ima_canonical_fmt ? *(u32 *)(hdr[HDR_PCR].data) : in ima_restore_measurement_list()