Rearrange KSU related conditional compilation support in core_hook.c to improve code readability
This commit is contained in:
@@ -82,12 +82,6 @@ extern bool susfs_is_auto_add_sus_ksu_default_mount_enabled;
|
|||||||
#ifdef CONFIG_KSU_SUSFS_AUTO_ADD_TRY_UMOUNT_FOR_BIND_MOUNT
|
#ifdef CONFIG_KSU_SUSFS_AUTO_ADD_TRY_UMOUNT_FOR_BIND_MOUNT
|
||||||
extern bool susfs_is_auto_add_try_umount_for_bind_mount_enabled;
|
extern bool susfs_is_auto_add_try_umount_for_bind_mount_enabled;
|
||||||
#endif // #ifdef CONFIG_KSU_SUSFS_AUTO_ADD_TRY_UMOUNT_FOR_BIND_MOUNT
|
#endif // #ifdef CONFIG_KSU_SUSFS_AUTO_ADD_TRY_UMOUNT_FOR_BIND_MOUNT
|
||||||
#ifdef CONFIG_KSU_SUSFS_SUS_SU
|
|
||||||
extern bool susfs_is_sus_su_ready;
|
|
||||||
extern int susfs_sus_su_working_mode;
|
|
||||||
extern bool susfs_is_sus_su_hooks_enabled __read_mostly;
|
|
||||||
extern bool ksu_devpts_hook;
|
|
||||||
#endif // #ifdef CONFIG_KSU_SUSFS_SUS_SU
|
|
||||||
|
|
||||||
static inline void susfs_on_post_fs_data(void) {
|
static inline void susfs_on_post_fs_data(void) {
|
||||||
struct path path;
|
struct path path;
|
||||||
@@ -122,6 +116,13 @@ pr_info("susfs_is_auto_add_try_umount_for_bind_mount_enabled: %d\n", susfs_is_au
|
|||||||
}
|
}
|
||||||
#endif // #ifdef CONFIG_KSU_SUSFS
|
#endif // #ifdef CONFIG_KSU_SUSFS
|
||||||
|
|
||||||
|
#ifdef CONFIG_KSU_SUSFS_SUS_SU
|
||||||
|
extern bool susfs_is_sus_su_ready;
|
||||||
|
extern int susfs_sus_su_working_mode;
|
||||||
|
extern bool susfs_is_sus_su_hooks_enabled __read_mostly;
|
||||||
|
extern bool ksu_devpts_hook;
|
||||||
|
#endif // #ifdef CONFIG_KSU_SUSFS_SUS_SU
|
||||||
|
|
||||||
static bool ksu_module_mounted = false;
|
static bool ksu_module_mounted = false;
|
||||||
|
|
||||||
extern int ksu_handle_sepolicy(unsigned long arg3, void __user *arg4);
|
extern int ksu_handle_sepolicy(unsigned long arg3, void __user *arg4);
|
||||||
|
|||||||
Reference in New Issue
Block a user