We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d97d01e commit de8f1baCopy full SHA for de8f1ba
userspace/ksud/src/ksucalls.rs
@@ -48,6 +48,7 @@ static INFO_CACHE: OnceLock<GetInfoCmd> = OnceLock::new();
48
const KSU_INSTALL_MAGIC1: u32 = 0xDEADBEEF;
49
const KSU_INSTALL_MAGIC2: u32 = 0xCAFEBABE;
50
51
+#[cfg(any(target_os = "linux", target_os = "android"))]
52
fn scan_driver_fd() -> Option<RawFd> {
53
let fd_dir = fs::read_dir("/proc/self/fd").ok()?;
54
@@ -67,6 +68,7 @@ fn scan_driver_fd() -> Option<RawFd> {
67
68
}
69
70
// Get cached driver fd
71
72
fn init_driver_fd() -> Option<RawFd> {
73
let fd = scan_driver_fd();
74
if fd.is_none() {
0 commit comments