aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-11-28 18:26:56 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-11-28 18:26:56 +0100
commitee3c2c3591a91265076bd89515cb217a5ea5a561 (patch)
tree5ecacc4a59f494737a8546c353a203c9a6287af4 /tools
parentef040b21d2b975b842a25d4488483b91c0336fd7 (diff)
tools: enable bpg jit in create-image.sh
JIT should be more interesting to fuzz.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/create-image.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/create-image.sh b/tools/create-image.sh
index 78120e67d..9fa12c4bc 100755
--- a/tools/create-image.sh
+++ b/tools/create-image.sh
@@ -17,7 +17,9 @@ echo 'T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100' | sudo tee -a wheezy/etc/
printf '\nauto eth0\niface eth0 inet dhcp\n' | sudo tee -a wheezy/etc/network/interfaces
echo 'debugfs /sys/kernel/debug debugfs defaults 0 0' | sudo tee -a wheezy/etc/fstab
echo 'debug.exception-trace = 0' | sudo tee -a wheezy/etc/sysctl.conf
-sudo mkdir wheezy/root/.ssh/
+echo "net.core.bpf_jit_enable = 2" | sudo tee -a wheezy/etc/sysctl.conf
+echo "net.core.bpf_jit_harden = 2" | sudo tee -a wheezy/etc/sysctl.conf
+sudo mkdir -p wheezy/root/.ssh/
rm -rf ssh
mkdir -p ssh
ssh-keygen -f ssh/id_rsa -t rsa -N ''