DragonFlyBSD Kernel Audit
DF-1088 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-1088 run.sh — unprivileged + privileged demonstration.
# Run as maxx; the script also prints the root command for completeness.
set +e
cd "$(dirname "$0")"
echo "=== as $(id -un) (uid=$(id -u)) ==="
./df1088_trigger
echo "RUN_EXIT=$?"
echo
echo "=== root invocation (if sudo available; otherwise run manually) ==="
echo "    su root -c $(pwd)/df1088_trigger"