diff options
Diffstat (limited to 'ripple')
-rw-r--r-- | ripple/minitrace/src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index 9868f6f..425824f 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -5,6 +5,7 @@ use { nix::{ libc, sys::{ + personality::{self, Persona}, ptrace, wait::{waitpid, WaitPidFlag, WaitStatus}, }, @@ -75,6 +76,11 @@ enum EntryExit { } fn main() -> anyhow::Result<()> { + // disable ASLR + let mut persona = personality::get()?; + persona.insert(Persona::ADDR_NO_RANDOMIZE); + personality::set(persona)?; + let process = Process::spawn(&mut { let mut args = env::args(); |