]> git.baikalelectronics.ru Git - kernel.git/commit
ima: re-initialize iint->atomic_flags
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 23 Jan 2018 15:00:41 +0000 (10:00 -0500)
committerJames Morris <jmorris@namei.org>
Fri, 2 Feb 2018 10:03:08 +0000 (21:03 +1100)
commit34467f85d50d7425193b8d9413c270e1fac86170
treee84d4c3eff64cff1b940bab29bd85f57467725d0
parente2e3fda895fdd4120c204098c91f81a9ebf6dee6
ima: re-initialize iint->atomic_flags

Intermittently security.ima is not being written for new files.  This
patch re-initializes the new slab iint->atomic_flags field before
freeing it.

Fixes: commit 983bfa0b9060 ("ima: re-introduce own integrity cache lock")
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/integrity/iint.c