#!/bin/bash -x

SYD_DIR="/srv/syd"
SYD_BIN="${SYD_DIR}/syd"

case "${1:-}" in
  runner)
      exec strace -fyyY -s1024 "${SYD_BIN}" -pD -pkcov /syz-executor.orig "$@"
      ;;
  *)
      exec /syz-executor.orig "$@"
      ;;
esac
