diff options
author | Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | 2021-04-06 08:12:40 +0000 |
---|---|---|
committer | Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | 2021-04-06 08:12:40 +0000 |
commit | c4253dfaf61883b51bed3355f22f8895714e98d6 (patch) | |
tree | 42ce6b5dd6233443c0f8d04b1a77ba9cd9ec1136 /security | |
parent | ccf90e001d5d9c69bbb378a3aaea68bcc9f82a85 (diff) | |
parent | 4e85f8a712cddf2ceeaac50a26b239fbbcb7091f (diff) |
Merge tag 'v5.4.109' into 5.4-2.3.x-imx
This is the 5.4.109 stable release
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/integrity/iint.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/security/integrity/iint.c b/security/integrity/iint.c index e12c4900510f..0b9cb639a0ed 100644 --- a/security/integrity/iint.c +++ b/security/integrity/iint.c @@ -98,6 +98,14 @@ struct integrity_iint_cache *integrity_inode_get(struct inode *inode) struct rb_node *node, *parent = NULL; struct integrity_iint_cache *iint, *test_iint; + /* + * The integrity's "iint_cache" is initialized at security_init(), + * unless it is not included in the ordered list of LSMs enabled + * on the boot command line. + */ + if (!iint_cache) + panic("%s: lsm=integrity required.\n", __func__); + iint = integrity_iint_find(inode); if (iint) return iint; |