mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-17 10:10:08 +00:00
bpf: enable hardening mode 1 for jited images
This will harden non-root programs from kernel side, but not root-only ones. Helps also to increase coverage a bit since syzkaller generates programs for both cases. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
parent
b17ae9398c
commit
ac9b19d2e4
@ -24,6 +24,7 @@ echo "kernel.printk = 7 4 1 3" | sudo tee -a $DIR/etc/sysctl.conf
|
||||
echo 'debug.exception-trace = 0' | sudo tee -a $DIR/etc/sysctl.conf
|
||||
echo "net.core.bpf_jit_enable = 1" | sudo tee -a $DIR/etc/sysctl.conf
|
||||
echo "net.core.bpf_jit_kallsyms = 1" | sudo tee -a $DIR/etc/sysctl.conf
|
||||
echo "net.core.bpf_jit_harden = 1" | sudo tee -a $DIR/etc/sysctl.conf
|
||||
echo "kernel.softlockup_all_cpu_backtrace = 1" | sudo tee -a $DIR/etc/sysctl.conf
|
||||
echo "kernel.kptr_restrict = 0" | sudo tee -a $DIR/etc/sysctl.conf
|
||||
echo "kernel.watchdog_thresh = 60" | sudo tee -a $DIR/etc/sysctl.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user