projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8445d64
)
ima: ima_initialized is set only if successful
author
Dmitry Kasatkin
<dmitry.kasatkin@intel.com>
Mon, 25 Jun 2012 09:18:11 +0000
(12:18 +0300)
committer
Mimi Zohar
<zohar@linux.vnet.ibm.com>
Thu, 5 Jul 2012 20:43:57 +0000
(16:43 -0400)
Set ima_initialized only if initialization was successful.
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_main.c
patch
|
blob
|
history
diff --git
a/security/integrity/ima/ima_main.c
b/security/integrity/ima/ima_main.c
index
5b0548d
..
be82949
100644
(file)
--- a/
security/integrity/ima/ima_main.c
+++ b/
security/integrity/ima/ima_main.c
@@
-258,7
+258,8
@@
static int __init init_ima(void)
int error;
error = ima_init();
- ima_initialized = 1;
+ if (!error)
+ ima_initialized = 1;
return error;
}