IMA: include the word IMA in printk messages
As an example IMA emits a warning when it can't find a TPM chip: "No TPM chip found, activating TPM-bypass!" This patch prefaces that message with IMA so we know what subsystem is bypassing the TPM. Do this for all pr_info and pr_err messages. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Mimi Zohar <zohar@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
@@ -70,7 +70,7 @@ static int ima_add_digest_entry(struct ima_template_entry *entry)
|
||||
|
||||
qe = kmalloc(sizeof(*qe), GFP_KERNEL);
|
||||
if (qe == NULL) {
|
||||
pr_err("OUT OF MEMORY ERROR creating queue entry.\n");
|
||||
pr_err("IMA: OUT OF MEMORY ERROR creating queue entry.\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
qe->entry = entry;
|
||||
@@ -93,7 +93,7 @@ static int ima_pcr_extend(const u8 *hash)
|
||||
|
||||
result = tpm_pcr_extend(TPM_ANY_NUM, CONFIG_IMA_MEASURE_PCR_IDX, hash);
|
||||
if (result != 0)
|
||||
pr_err("Error Communicating to TPM chip\n");
|
||||
pr_err("IMA: Error Communicating to TPM chip\n");
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user