We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de63676 commit 4ecd993Copy full SHA for 4ecd993
security/integrity/ima/ima.h
@@ -53,7 +53,6 @@ enum tpm_pcrs { TPM_PCR0 = 0, TPM_PCR8 = 8 };
53
extern int ima_policy_flag;
54
55
/* set during initialization */
56
-extern int ima_initialized;
57
extern int ima_used_chip;
58
extern int ima_hash_algo;
59
extern int ima_appraise;
security/integrity/ima/ima_main.c
@@ -32,8 +32,6 @@
32
33
#include "ima.h"
34
35
-int ima_initialized;
36
-
37
#ifdef CONFIG_IMA_APPRAISE
38
int ima_appraise = IMA_APPRAISE_ENFORCE;
39
#else
@@ -517,10 +515,9 @@ static int __init init_ima(void)
517
515
error = ima_init();
518
516
}
519
520
- if (!error) {
521
- ima_initialized = 1;
+ if (!error)
522
ima_update_policy_flag();
523
- }
+
524
return error;
525
526
0 commit comments