kernel: run ksu_kprobe_init if build as module (#109)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#include "linux/export.h"
|
||||||
#include <asm-generic/errno-base.h>
|
#include <asm-generic/errno-base.h>
|
||||||
#include <linux/cpu.h>
|
#include <linux/cpu.h>
|
||||||
#include <linux/cred.h>
|
#include <linux/cred.h>
|
||||||
@@ -306,7 +307,11 @@ int __init kernelsu_init(void)
|
|||||||
pr_alert("You are running DEBUG version of KernelSU");
|
pr_alert("You are running DEBUG version of KernelSU");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ksu_lsm_hook_init(); // use ksu_kprobe_init if compiled as module
|
#ifndef MODULE
|
||||||
|
ksu_lsm_hook_init();
|
||||||
|
#else
|
||||||
|
ksu_kprobe_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
ksu_workqueue = alloc_workqueue("kernelsu_work_queue", 0, 0);
|
ksu_workqueue = alloc_workqueue("kernelsu_work_queue", 0, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user