diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-12-11 06:35:21 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2018-01-29 06:42:21 -0500 |
commit | 3b370b215f4b45c0be87d7a15b0d0e2e8b238aee (patch) | |
tree | 2b354addd8cbe8517f19736fd8c14b122edc357a /security/integrity/ima/ima_api.c | |
parent | f0e28280629e0ec7921f3179409a179b1ea41f24 (diff) | |
download | op-kernel-dev-3b370b215f4b45c0be87d7a15b0d0e2e8b238aee.zip op-kernel-dev-3b370b215f4b45c0be87d7a15b0d0e2e8b238aee.tar.gz |
IMA: switch IMA over to new i_version API
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'security/integrity/ima/ima_api.c')
-rw-r--r-- | security/integrity/ima/ima_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c index c7e8db0..c6ae422 100644 --- a/security/integrity/ima/ima_api.c +++ b/security/integrity/ima/ima_api.c @@ -18,6 +18,7 @@ #include <linux/fs.h> #include <linux/xattr.h> #include <linux/evm.h> +#include <linux/iversion.h> #include "ima.h" @@ -215,7 +216,7 @@ int ima_collect_measurement(struct integrity_iint_cache *iint, * which do not support i_version, support is limited to an initial * measurement/appraisal/audit. */ - i_version = file_inode(file)->i_version; + i_version = inode_query_iversion(inode); hash.hdr.algo = algo; /* Initialize hash digest to 0's in case of failure */ |