Skip to content

Commit b49d564

Browse files
Paul GortmakerJames Morris
authored andcommitted
security: integrity: partial revert of make ima_main explicitly non-modular
In commit 4f83d5e ("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 <zohar@linux.vnet.ibm.com> Cc: Dmitry Kasatkin <dmitry.kasatkin@gmail.com> Cc: James Morris <james.l.morris@oracle.com> Cc: "Serge E. Hallyn" <serge@hallyn.com> Cc: linux-ima-devel@lists.sourceforge.net Cc: linux-security-module@vger.kernel.org Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: James Morris <james.morris@microsoft.com>
1 parent 8bd8ea1 commit b49d564

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎security/integrity/ima/ima_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
2323

24-
#include <linux/init.h>
24+
#include <linux/module.h>
2525
#include <linux/file.h>
2626
#include <linux/binfmts.h>
2727
#include <linux/mount.h>

0 commit comments

Comments
 (0)