Skip to content

Instantly share code, notes, and snippets.

@kay21s
Last active October 27, 2019 01:00
Show Gist options
  • Save kay21s/dd07f704366542a85cba002c5e633134 to your computer and use it in GitHub Desktop.
Save kay21s/dd07f704366542a85cba002c5e633134 to your computer and use it in GitHub Desktop.
Disable ASLR in the system
Disable: echo 0 | sudo tee /proc/sys/kernel/randomize_va_space
Enable: echo 2 | sudo tee /proc/sys/kernel/randomize_va_space
But the above configuration will be canceled after a reboot.
For permanent configuration:
Add a file /etc/sysctl.d/01-disable-aslr.conf containing: kernel.randomize_va_space = 0
sudo docker run -it --network none --privileged --device=/dev/uio1:/dev/uio1 -v /var/run:/var/run -v /mnt/huge/:/mnt/huge/ -v /home/kai/openNetVM/:/openNetVM -w=/ --name=test ubuntu:14.04 /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment