Skip to content

Commit

Permalink
ima: ima_initialized is set only if successful
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Kasatkin authored and Mimi Zohar committed Jul 5, 2012
1 parent 8445d64 commit 7ff2267
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion security/integrity/ima/ima_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7ff2267

Please sign in to comment.