Exploit databaseDownload repository ZIP
GH-4e1c81f209356a53c0f21519df205900
no-world/rootkit
Sources for CVE-2026-64560
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files14
no-world/rootkitRevision 1c3caba207b8
- ↑..Parent directory
- adb_root.c
- adb_root.h
- kernel_umount.c
- kernel_umount.h
- module_blacklist.c
- module_blacklist.h
- selinux_hide.c
- selinux_hide.h
- shell_su_adb_only.c
- shell_su_adb_only.h
- sucompat.c
- sucompat.h
- sulog.c
- sulog.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
third_party/kernelsu/source/kernel/feature/sulog.c
C · 1,391 bytes#include <linux/cache.h>
#include <linux/compiler_types.h>
#include "feature/sulog.h"
#include "klog.h" // IWYU pragma: keep
#include "policy/feature.h"
#include "sulog/event.h"
#include "sulog/fd.h"
static bool ksu_sulog_enabled __read_mostly = false;
static int sulog_feature_get(u64 *value)
{
*value = ksu_sulog_enabled ? 1 : 0;
return 0;
}
static int sulog_feature_set(u64 value)
{
bool enable = value != 0;
ksu_sulog_enabled = enable;
pr_info("sulog: set to %d\n", enable);
return 0;
}
static const struct ksu_feature_handler sulog_handler = {
.feature_id = KSU_FEATURE_SULOG,
.name = "sulog",
.get_handler = sulog_feature_get,
.set_handler = sulog_feature_set,
};
bool ksu_sulog_is_enabled(void)
{
return ksu_sulog_enabled;
}
void __init ksu_sulog_init(void)
{
int ret;
ksu_sulog_enabled = false;
ret = ksu_register_feature_handler(&sulog_handler);
if (ret) {
pr_err("Failed to register sulog feature handler\n");
return;
}
ret = ksu_sulog_events_init();
if (ret) {
pr_err("Failed to initialize sulog events: %d\n", ret);
ksu_unregister_feature_handler(KSU_FEATURE_SULOG);
return;
}
ksu_sulog_fd_init();
}
void __exit ksu_sulog_exit(void)
{
ksu_sulog_fd_exit();
ksu_sulog_events_exit();
ksu_unregister_feature_handler(KSU_FEATURE_SULOG);
}