DF-2246 / run.sh
#!/bin/sh # DF-2246 run: invoke as the unprivileged user to show the gate holds (EPERM), # OR as root with an arg (enter/panic/panic2) to trigger the destructive effect. # ./run.sh -> unpriv gate check (EPERM, guest stays up) # ./run.sh enter -> root only: debug.enter_debugger=ddb (HARD DDB HANG) cd "$(dirname "$0")" if [ $# -gt 0 ]; then echo "[running as $(id -un) uid=$(id -u) with destructive arg: $1]" ./ddb_sysctl "$1" else ./ddb_sysctl check fi |