security: integrity: partial revert of make ima_main explicitly non-modular
authorPaul Gortmaker <[email protected]>
Fri, 14 Dec 2018 21:48:07 +0000 (16:48 -0500)
committerJames Morris <[email protected]>
Thu, 20 Dec 2018 17:59:12 +0000 (09:59 -0800)
In commit 4f83d5ea643a ("security: integrity: make ima_main explicitly
non-modular") I'd removed <linux/module.h> after assuming that the
function is_module_sig_enforced() was an LSM function and not a core
kernel module function.

Unfortunately the typical .config selections used in build testing
provide an implicit <linux/module.h> presence, and so normal/typical
build testing did not immediately reveal my incorrect assumption.

Cc: Mimi Zohar <[email protected]>
Cc: Dmitry Kasatkin <[email protected]>
Cc: James Morris <[email protected]>
Cc: "Serge E. Hallyn" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Paul Gortmaker <[email protected]>
Signed-off-by: James Morris <[email protected]>
security/integrity/ima/ima_main.c

index adaf969322374f078a4289cb333a8801fb26aae2..616a88f95b9288489414c2a9e4e8596e3a9e6e22 100644 (file)
@@ -21,7 +21,7 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
-#include <linux/init.h>
+#include <linux/module.h>
 #include <linux/file.h>
 #include <linux/binfmts.h>
 #include <linux/mount.h>