Skip to content

Commit

Permalink
kernel: remove it from sysfs
Browse files Browse the repository at this point in the history
tiann committed Mar 18, 2024
1 parent d677046 commit fefb02e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kernel/ksu.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "linux/export.h"
#include "linux/fs.h"
#include "linux/kobject.h"
#include "linux/module.h"
#include "linux/workqueue.h"

@@ -60,6 +62,9 @@ int __init kernelsu_init(void)
pr_alert("KPROBES is disabled, KernelSU may not work, please check https://kernelsu.org/guide/how-to-integrate-for-non-gki.html");
#endif

#ifdef MODULE
kobject_del(&THIS_MODULE->mkobj.kobj);
#endif
return 0;
}

0 comments on commit fefb02e

Please sign in to comment.