Skip to content

Commit

Permalink
kernelCTF: server: update to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
koczkatamas committed Jan 9, 2025
1 parent 549c352 commit be4c99d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernelctf/server/qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ CAPABILITIES=$4
RELEASE=$(basename "$RELEASE_PATH")

HARDENING=""
if [[ "$RELEASE" == "mitigation-v3"* ]]; then
HARDENING="sysctl.kernel.dmesg_restrict=1 sysctl.kernel.kptr_restrict=2 sysctl.kernel.unprivileged_bpf_disabled=2 sysctl.net.core.bpf_jit_harden=1 sysctl.kernel.yama.ptrace_scope=1";
if [[ "$RELEASE" == "mitigation-"* ]]; then
HARDENING="sysctl.kernel.dmesg_restrict=1 sysctl.kernel.kptr_restrict=2 sysctl.kernel.unprivileged_bpf_disabled=2 sysctl.net.core.bpf_jit_harden=1 sysctl.kernel.yama.ptrace_scope=1 slab_virtual=1 slab_virtual_guards=1";
fi

IO_URING="sysctl.kernel.io_uring_disabled=2"
Expand Down

0 comments on commit be4c99d

Please sign in to comment.