diff options
author | Goffredo Baroncelli <kreijack@inwind.it> | 2018-02-01 14:15:25 +0100 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2018-02-01 14:15:25 +0100 |
commit | c472c07bfed9c87d7e0b2c052d7e77fedd7109a9 (patch) | |
tree | 0d519381c30d42f2131931e32126aa4ef4fe4ab4 /security | |
parent | Merge tag 'docs-4.16' of git://git.lwn.net/linux (diff) | |
download | linux-c472c07bfed9c87d7e0b2c052d7e77fedd7109a9.tar.xz linux-c472c07bfed9c87d7e0b2c052d7e77fedd7109a9.zip |
iversion: Rename make inode_cmp_iversion{+raw} to inode_eq_iversion{+raw}
The function inode_cmp_iversion{+raw} is counter-intuitive, because it
returns true when the counters are different and false when these are equal.
Rename it to inode_eq_iversion{+raw}, which will returns true when
the counters are equal and false otherwise.
Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/integrity/ima/ima_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c index 061425dd6400..2cfb0c714967 100644 --- a/security/integrity/ima/ima_main.c +++ b/security/integrity/ima/ima_main.c @@ -135,7 +135,7 @@ static void ima_check_last_writer(struct integrity_iint_cache *iint, update = test_and_clear_bit(IMA_UPDATE_XATTR, &iint->atomic_flags); if (!IS_I_VERSION(inode) || - inode_cmp_iversion(inode, iint->version) || + !inode_eq_iversion(inode, iint->version) || (iint->flags & IMA_NEW_FILE)) { iint->flags &= ~(IMA_DONE_MASK | IMA_NEW_FILE); iint->measured_pcrs = 0; |