mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
Revert "ANDROID: GKI: Disable security lockdown for unsigned modules"
This reverts commit befc75e758.
It conflicts in bad ways with the module code changes in 5.19-rc1 so
revert it for now. If it is still needed, it can be added back in
later.
Bug: 200082547
Bug: 214445388
Cc: Ramji Jiyani <ramjiyani@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ice884d241ae153a75facc1ca409ea5c59653cde3
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user