diff --git a/kernel/module.c b/kernel/module.c index 358e2eece5e1..cc846a80b229 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -2938,15 +2938,7 @@ static int module_sig_check(struct load_info *info, int flags) return -EKEYREJECTED; } -/* - * ANDROID: GKI: Do not prevent loading of unsigned modules; - * as all modules except GKI modules are not signed. - */ -#ifndef CONFIG_MODULE_SIG_PROTECT return security_locked_down(LOCKDOWN_MODULE_SIGNATURE); -#else - return 0; -#endif } #else /* !CONFIG_MODULE_SIG */ static int module_sig_check(struct load_info *info, int flags)