kernel: define ksu_core_exit() for <4.1 devices without LSM hooks (#360)
* kernel: define ksu_core_exit() for <4.1 devices without LSM hooks Ensure ksu_core_exit() is defined even if CONFIG_KSU_LSM_SECURITY_HOOKS is disabled, which is mostly relevant for kernels 4.1 and older, preventing build failures due to missing exit function. Signed-off-by: Prslc <prslc113@gmail.com> * kernel: consolidate ksu_core_exit() definition Move ksu_core_exit() out of the CONFIG_KSU_LSM_SECURITY_HOOKS conditional branches to remove redundant empty definitions and ensure the exit function is always available. Signed-off-by: Prslc <prslc113@gmail.com> --------- Signed-off-by: Prslc <prslc113@gmail.com>
This commit is contained in:
@@ -1067,13 +1067,13 @@ void __init ksu_core_init(void)
|
|||||||
{
|
{
|
||||||
ksu_lsm_hook_init();
|
ksu_lsm_hook_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ksu_core_exit(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
void __init ksu_core_init(void)
|
void __init ksu_core_init(void)
|
||||||
{
|
{
|
||||||
pr_info("ksu_core_init: LSM hooks not in use.\n");
|
pr_info("ksu_core_init: LSM hooks not in use.\n");
|
||||||
}
|
}
|
||||||
#endif //CONFIG_KSU_LSM_SECURITY_HOOKS
|
#endif //CONFIG_KSU_LSM_SECURITY_HOOKS
|
||||||
|
|
||||||
|
void ksu_core_exit(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user