Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions userspace/ksud/src/ksucalls.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::fs;
#[cfg(any(target_os = "linux", target_os = "android"))]
use std::os::unix::io::RawFd;
use std::sync::OnceLock;

Expand Down Expand Up @@ -39,7 +40,9 @@ struct CheckSafemodeCmd {
}

// Global driver fd cache
#[cfg(any(target_os = "linux", target_os = "android"))]
static DRIVER_FD: OnceLock<RawFd> = OnceLock::new();
#[cfg(any(target_os = "linux", target_os = "android"))]
static INFO_CACHE: OnceLock<GetInfoCmd> = OnceLock::new();

const KSU_INSTALL_MAGIC1: u32 = 0xDEADBEEF;
Expand Down