We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e28eed commit 92063f3Copy full SHA for 92063f3
security/integrity/iint.c
@@ -98,6 +98,14 @@ struct integrity_iint_cache *integrity_inode_get(struct inode *inode)
98
struct rb_node *node, *parent = NULL;
99
struct integrity_iint_cache *iint, *test_iint;
100
101
+ /*
102
+ * The integrity's "iint_cache" is initialized at security_init(),
103
+ * unless it is not included in the ordered list of LSMs enabled
104
+ * on the boot command line.
105
+ */
106
+ if (!iint_cache)
107
+ panic("%s: lsm=integrity required.\n", __func__);
108
+
109
iint = integrity_iint_find(inode);
110
if (iint)
111
return iint;
0 commit comments