security: integrity: partial revert of make ima_main explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 14 Dec 2018 21:48:07 +0000 (16:48 -0500)
committerJames Morris <james.morris@microsoft.com>
Thu, 20 Dec 2018 17:59:12 +0000 (09:59 -0800)
commitb49d564344f773d8afee982153c8493e5f2eaf38
treeaa8decdd23d6c07ac1c58fd854a3173388b5f138
parent8bd8ea195f6d135a8d85201116314eb5237ad7e7
security: integrity: partial revert of make ima_main explicitly non-modular

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 <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>
security/integrity/ima/ima_main.c