kernel: fix dynamic signature rescan functionality and update related handlers
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
#include "kernel_compat.h"
|
||||
|
||||
#include "kpm/kpm.h"
|
||||
#include "dynamic_sign.h"
|
||||
|
||||
static bool ksu_module_mounted = false;
|
||||
|
||||
@@ -410,6 +411,7 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
|
||||
// Initializing Dynamic Signatures
|
||||
ksu_dynamic_sign_init();
|
||||
ksu_load_dynamic_sign();
|
||||
ksu_trigger_manager_rescan();
|
||||
pr_info("Dynamic sign config loaded during post-fs-data\n");
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -230,7 +230,7 @@ void ksu_rescan_manager_work_handler(struct work_struct *work)
|
||||
pr_info("Preserved traditional manager, rescanning for dynamic managers\n");
|
||||
|
||||
// Trigger manager scanning
|
||||
ksu_track_throne();
|
||||
track_throne();
|
||||
|
||||
pr_info("Manager rescan completed\n");
|
||||
}
|
||||
|
||||
@@ -39,6 +39,5 @@ bool ksu_is_multi_manager_apk(char *path, int *signature_index);
|
||||
|
||||
// Manager rescanning functionality
|
||||
bool ksu_trigger_manager_rescan(void);
|
||||
void ksu_rescan_manager_work_handler(struct work_struct *work);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user