From: Dmitry Kasatkin Date: Mon, 15 Aug 2011 12:30:11 +0000 (+0300) Subject: evm: clean verification status X-Git-Tag: v3.2-rc1~78^2~21^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb788d8b981fa55603873416882f8dcf835e7924;p=platform%2Fupstream%2Fkernel-adaptation-pc.git evm: clean verification status When allocating from slab, initialization is done the first time in init_once() and subsequently on free. Because evm_status was not re-initialized on free, evm_verify_hmac() skipped verifications. This patch re-initializes evm_status. Signed-off-by: Dmitry Kasatkin Signed-off-by: Mimi Zohar --- diff --git a/security/integrity/iint.c b/security/integrity/iint.c index 0a23e07..399641c 100644 --- a/security/integrity/iint.c +++ b/security/integrity/iint.c @@ -74,6 +74,7 @@ static void iint_free(struct integrity_iint_cache *iint) { iint->version = 0; iint->flags = 0UL; + iint->evm_status = INTEGRITY_UNKNOWN; kmem_cache_free(iint_cache, iint); }