|
@@ -127,7 +127,8 @@ static void ima_check_last_writer(struct integrity_iint_cache *iint,
|
|
|
|
|
|
inode_lock(inode);
|
|
|
if (atomic_read(&inode->i_writecount) == 1) {
|
|
|
- if ((iint->version != inode->i_version) ||
|
|
|
+ if (!IS_I_VERSION(inode) ||
|
|
|
+ (iint->version != inode->i_version) ||
|
|
|
(iint->flags & IMA_NEW_FILE)) {
|
|
|
iint->flags &= ~(IMA_DONE_MASK | IMA_NEW_FILE);
|
|
|
iint->measured_pcrs = 0;
|