DragonFlyBSD Kernel Audit
DF-2622 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
#!/bin/sh
# DF-2622 build+run: compile the direct-syscall trigger in the guest.
set -e
CD=$(dirname "$0")
scp -F dfbsd-qemu/config "$CD/mnt2622.c" "$CD/run_2622.sh" dfbsd:/root/poc/dfv/
ssh -F dfbsd-qemu/config dfbsd 'cc -O -o /root/poc/dfv/mnt2622 /root/poc/dfv/mnt2622.c && sync && echo BUILD_OK'
ssh -F dfbsd-qemu/config dfbsd 'sh /root/poc/dfv/run_2622.sh'