diff options
Diffstat (limited to 'security/integrity/ima/ima_init.c')
-rw-r--r-- | security/integrity/ima/ima_init.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/security/integrity/ima/ima_init.c b/security/integrity/ima/ima_init.c index 37122768554a..e8f9d70a465d 100644 --- a/security/integrity/ima/ima_init.c +++ b/security/integrity/ima/ima_init.c | |||
@@ -14,6 +14,9 @@ | |||
14 | * File: ima_init.c | 14 | * File: ima_init.c |
15 | * initialization and cleanup functions | 15 | * initialization and cleanup functions |
16 | */ | 16 | */ |
17 | |||
18 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
19 | |||
17 | #include <linux/module.h> | 20 | #include <linux/module.h> |
18 | #include <linux/scatterlist.h> | 21 | #include <linux/scatterlist.h> |
19 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
@@ -42,10 +45,10 @@ int ima_used_chip; | |||
42 | */ | 45 | */ |
43 | static void __init ima_add_boot_aggregate(void) | 46 | static void __init ima_add_boot_aggregate(void) |
44 | { | 47 | { |
48 | static const char op[] = "add_boot_aggregate"; | ||
49 | const char *audit_cause = "ENOMEM"; | ||
45 | struct ima_template_entry *entry; | 50 | struct ima_template_entry *entry; |
46 | struct integrity_iint_cache tmp_iint, *iint = &tmp_iint; | 51 | struct integrity_iint_cache tmp_iint, *iint = &tmp_iint; |
47 | const char *op = "add_boot_aggregate"; | ||
48 | const char *audit_cause = "ENOMEM"; | ||
49 | int result = -ENOMEM; | 52 | int result = -ENOMEM; |
50 | int violation = 0; | 53 | int violation = 0; |
51 | struct { | 54 | struct { |
@@ -93,7 +96,7 @@ int __init ima_init(void) | |||
93 | ima_used_chip = 1; | 96 | ima_used_chip = 1; |
94 | 97 | ||
95 | if (!ima_used_chip) | 98 | if (!ima_used_chip) |
96 | pr_info("IMA: No TPM chip found, activating TPM-bypass!\n"); | 99 | pr_info("No TPM chip found, activating TPM-bypass!\n"); |
97 | 100 | ||
98 | rc = ima_init_crypto(); | 101 | rc = ima_init_crypto(); |
99 | if (rc) | 102 | if (rc) |