You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
always use memfd for lib
This commit is contained in:
@@ -137,12 +137,6 @@ fn load_modules(arch: &str) -> Result<Vec<Module>> {
|
|||||||
Ok(modules)
|
Ok(modules)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
fn create_library_fd(so_path: &PathBuf) -> Result<OwnedFd> {
|
|
||||||
Ok(OwnedFd::from(fs::File::open(so_path)?))
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(debug_assertions))]
|
|
||||||
fn create_library_fd(so_path: &PathBuf) -> Result<OwnedFd> {
|
fn create_library_fd(so_path: &PathBuf) -> Result<OwnedFd> {
|
||||||
let opts = memfd::MemfdOptions::default().allow_sealing(true);
|
let opts = memfd::MemfdOptions::default().allow_sealing(true);
|
||||||
let memfd = opts.create("jit-cache")?;
|
let memfd = opts.create("jit-cache")?;
|
||||||
|
|||||||
Reference in New Issue
Block a user